pub enum Argument {
SelfArgument(SelfArgument),
Named(NamedArgument),
}Variants§
SelfArgument(SelfArgument)
Named(NamedArgument)
Implementations§
Source§impl Argument
impl Argument
pub fn into_self_argument(self) -> Option<SelfArgument>
pub fn into_named(self) -> Option<NamedArgument>
pub fn as_self_argument(&self) -> Option<&SelfArgument>
pub fn as_named(&self) -> Option<&NamedArgument>
pub fn is_self_argument(&self) -> bool
pub fn is_named(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnsafeUnpin for Argument
impl UnwindSafe for Argument
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