pub struct Arg<'a> { /* private fields */ }
Expand description
An argument
Implementations§
Source§impl<'a> Arg<'a>
impl<'a> Arg<'a>
Sourcepub fn ty(&self) -> &CompleteType<'a>
pub fn ty(&self) -> &CompleteType<'a>
Return the argument type.
Sourcepub fn direction(&self) -> Option<ArgDirection>
pub fn direction(&self) -> Option<ArgDirection>
Return the argument direction, if any.
Sourcepub fn annotations(&self) -> &[Annotation]
pub fn annotations(&self) -> &[Annotation]
Return the associated annotations.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Arg<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Arg<'a>
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
impl<'a> StructuralPartialEq for Arg<'a>
Auto Trait Implementations§
impl<'a> Freeze for Arg<'a>
impl<'a> RefUnwindSafe for Arg<'a>
impl<'a> Send for Arg<'a>
impl<'a> Sync for Arg<'a>
impl<'a> Unpin for Arg<'a>
impl<'a> UnwindSafe for Arg<'a>
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