pub struct CallMode { /* private fields */ }Expand description
The ways in which a caller may address a parameter.
Implementations§
Source§impl CallMode
impl CallMode
Sourcepub const POSITIONAL: Self
pub const POSITIONAL: Self
The parameter is addressed only by declaration position.
Sourcepub const POSITIONAL_OR_NAMED: Self
pub const POSITIONAL_OR_NAMED: Self
The parameter may be addressed by position or name.
Sourcepub const fn new(positional: bool, named: bool) -> Self
pub const fn new(positional: bool, named: bool) -> Self
Constructs a call mode from its two independent addressing facets.
A mode with neither facet is contradictory and is refused by
FunctionPlan::new.
Sourcepub const fn is_positional(self) -> bool
pub const fn is_positional(self) -> bool
Whether positional addressing is admitted.
Trait Implementations§
impl Copy for CallMode
impl Eq for CallMode
impl StructuralPartialEq for CallMode
Auto Trait Implementations§
impl Freeze for CallMode
impl RefUnwindSafe for CallMode
impl Send for CallMode
impl Sync for CallMode
impl Unpin for CallMode
impl UnsafeUnpin for CallMode
impl UnwindSafe for CallMode
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