pub struct Definitions(/* private fields */);Implementations§
Source§impl Definitions
impl Definitions
pub fn populate_one<T: CasperABI>(&mut self)
pub fn populate_custom(&mut self, decl: Declaration, def: Definition)
pub fn iter(&self) -> impl Iterator<Item = (&Declaration, &Definition)>
pub fn get(&self, decl: &str) -> Option<&Definition>
pub fn first(&self) -> Option<(&Declaration, &Definition)>
Sourcepub fn has_definition(&self, decl: &Declaration) -> bool
pub fn has_definition(&self, decl: &Declaration) -> bool
Returns true if the given declaration has a definition in this set.
Trait Implementations§
Source§impl Clone for Definitions
impl Clone for Definitions
Source§fn clone(&self) -> Definitions
fn clone(&self) -> Definitions
Returns a duplicate 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 Definitions
impl Debug for Definitions
Source§impl Default for Definitions
impl Default for Definitions
Source§fn default() -> Definitions
fn default() -> Definitions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Definitions
impl<'de> Deserialize<'de> for Definitions
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 Hash for Definitions
impl Hash for Definitions
Source§impl IntoIterator for Definitions
impl IntoIterator for Definitions
Source§impl Ord for Definitions
impl Ord for Definitions
Source§fn cmp(&self, other: &Definitions) -> Ordering
fn cmp(&self, other: &Definitions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Definitions
impl PartialEq for Definitions
Source§impl PartialOrd for Definitions
impl PartialOrd for Definitions
Source§impl Serialize for Definitions
impl Serialize for Definitions
impl Eq for Definitions
impl StructuralPartialEq for Definitions
Auto Trait Implementations§
impl Freeze for Definitions
impl RefUnwindSafe for Definitions
impl Send for Definitions
impl Sync for Definitions
impl Unpin for Definitions
impl UnwindSafe for Definitions
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