pub enum ParameterDirection {
In,
Out,
InOut,
Variadic,
}Expand description
Which way a parameter carries its value.
Variants§
In
Read by the routine. The only direction a function’s parameters take.
Out
Written by the routine and read by its caller.
InOut
Both.
Variadic
Any number of values of the parameter’s type, collected into the last parameter.
Trait Implementations§
Source§impl Clone for ParameterDirection
impl Clone for ParameterDirection
impl Copy for ParameterDirection
Source§impl Debug for ParameterDirection
impl Debug for ParameterDirection
Source§impl Default for ParameterDirection
impl Default for ParameterDirection
impl Eq for ParameterDirection
Source§impl PartialEq for ParameterDirection
impl PartialEq for ParameterDirection
impl StructuralPartialEq for ParameterDirection
Auto Trait Implementations§
impl Freeze for ParameterDirection
impl RefUnwindSafe for ParameterDirection
impl Send for ParameterDirection
impl Sync for ParameterDirection
impl Unpin for ParameterDirection
impl UnsafeUnpin for ParameterDirection
impl UnwindSafe for ParameterDirection
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