pub enum PassingStyle {
Value,
Reference,
MutReference,
}
Expand description
Used by sl_sh_fn macro to embed information at runtime about the parameters of the rust native function, specifically whether it is going to pass the value (a move), a reference, or mutable reference.
Variants§
Trait Implementations§
Source§impl Clone for PassingStyle
impl Clone for PassingStyle
Source§fn clone(&self) -> PassingStyle
fn clone(&self) -> PassingStyle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PassingStyle
impl Debug for PassingStyle
Source§impl PartialEq for PassingStyle
impl PartialEq for PassingStyle
impl Copy for PassingStyle
impl Eq for PassingStyle
impl StructuralPartialEq for PassingStyle
Auto Trait Implementations§
impl Freeze for PassingStyle
impl RefUnwindSafe for PassingStyle
impl Send for PassingStyle
impl Sync for PassingStyle
impl Unpin for PassingStyle
impl UnwindSafe for PassingStyle
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