pub enum PassingStyle {
ByValue,
ByRef,
ByMutRef,
}
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<'de> Deserialize<'de> for PassingStyle
impl<'de> Deserialize<'de> for PassingStyle
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
Source§impl Display for PassingStyle
impl Display for PassingStyle
Source§impl PartialEq for PassingStyle
impl PartialEq for PassingStyle
Source§impl Serialize for PassingStyle
impl Serialize for PassingStyle
Source§impl ToTokens for PassingStyle
impl ToTokens for PassingStyle
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.