pub struct NatSpec {
pub items: Vec<NatSpecItem>,
}Fields§
§items: Vec<NatSpecItem>Implementations§
Source§impl NatSpec
impl NatSpec
pub fn append(&mut self, other: &mut Self)
pub fn populate_returns(self, returns: &[Identifier]) -> Self
pub fn count_param(&self, ident: &Identifier) -> usize
pub fn count_return(&self, ident: &Identifier) -> usize
pub fn count_unnamed_returns(&self) -> usize
pub fn count_all_returns(&self) -> usize
pub fn has_param(&self) -> bool
pub fn has_return(&self) -> bool
pub fn has_notice(&self) -> bool
pub fn has_dev(&self) -> bool
Trait Implementations§
Source§impl From<NatSpecItem> for NatSpec
impl From<NatSpecItem> for NatSpec
Source§fn from(value: NatSpecItem) -> Self
fn from(value: NatSpecItem) -> Self
Converts to this type from the input type.
impl Eq for NatSpec
impl StructuralPartialEq for NatSpec
Auto Trait Implementations§
impl Freeze for NatSpec
impl RefUnwindSafe for NatSpec
impl Send for NatSpec
impl Sync for NatSpec
impl Unpin for NatSpec
impl UnwindSafe for NatSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.