pub enum RefType {
No,
Ref,
Mut,
}
Variants§
Implementations§
source§impl RefType
impl RefType
pub fn lifetime(self) -> TokenStream
pub fn reference(self) -> TokenStream
pub fn mutability(self) -> TokenStream
pub fn pattern_ref(self) -> TokenStream
pub fn reference_with_lifetime(self) -> TokenStream
pub fn is_ref(self) -> bool
pub fn from_attr_name(name: &str) -> Self
Trait Implementations§
impl Copy for RefType
impl Eq for RefType
impl StructuralPartialEq for RefType
Auto Trait Implementations§
impl Freeze for RefType
impl RefUnwindSafe for RefType
impl Send for RefType
impl Sync for RefType
impl Unpin for RefType
impl UnwindSafe for RefType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)