pub struct FunctionSignature {
pub parameters: BTreeMap<AbstractLocation, AccessPattern>,
pub global_parameters: BTreeMap<AbstractLocation, AccessPattern>,
}
Expand description
The signature of a function. Currently only contains information on the parameters of a function and their access patterns.
Fields§
§parameters: BTreeMap<AbstractLocation, AccessPattern>
The parameters of the function together with their access patterns.
global_parameters: BTreeMap<AbstractLocation, AccessPattern>
Values in writeable global memory accessed by the function.
Implementations§
source§impl FunctionSignature
impl FunctionSignature
sourcepub fn to_json_compact(&self) -> Value
pub fn to_json_compact(&self) -> Value
Generate a compact JSON-representation of the function signature for pretty printing.
Trait Implementations§
source§impl Clone for FunctionSignature
impl Clone for FunctionSignature
source§fn clone(&self) -> FunctionSignature
fn clone(&self) -> FunctionSignature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FunctionSignature
impl Debug for FunctionSignature
source§impl Default for FunctionSignature
impl Default for FunctionSignature
source§impl<'de> Deserialize<'de> for FunctionSignature
impl<'de> Deserialize<'de> for FunctionSignature
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for FunctionSignature
impl PartialEq for FunctionSignature
source§fn eq(&self, other: &FunctionSignature) -> bool
fn eq(&self, other: &FunctionSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FunctionSignature
impl Serialize for FunctionSignature
impl Eq for FunctionSignature
impl StructuralEq for FunctionSignature
impl StructuralPartialEq for FunctionSignature
Auto Trait Implementations§
impl RefUnwindSafe for FunctionSignature
impl Send for FunctionSignature
impl Sync for FunctionSignature
impl Unpin for FunctionSignature
impl UnwindSafe for FunctionSignature
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.