pub struct Local { /* private fields */ }Implementations§
Source§impl Local
impl Local
pub fn ptr_syn_attr(&self) -> *const Vec<Attribute>
pub fn ptr_syn_ident(&self) -> Which2<*const PatIdent, *const Receiver>
pub fn ptr_syn_ty(&self) -> Option<*const Type>
pub fn as_syn<'o>(&self) -> Which2<&'o PatIdent, &'o Receiver>
pub fn as_syn_attr<'o>(&self) -> &'o Vec<Attribute>
pub fn syn_id(&self) -> SynId
pub fn syn_type<'o>(&self) -> Option<&'o Type>
Trait Implementations§
Source§impl AttributeHelper for Local
impl AttributeHelper for Local
fn get_attributes(&self) -> Option<&Vec<Attribute>>
fn get_mut_attributes(&mut self) -> Option<&mut Vec<Attribute>>
fn get_attribute(&self, path: &str) -> Option<&Attribute>
fn get_mut_attribute(&mut self, path: &str) -> Option<&mut Attribute>
fn contains_attribute(&self, path: &str) -> bool
fn remove_attribute(&mut self, path: &str)
fn replace_attributes(&mut self, new: Vec<Attribute>) -> Vec<Attribute>
Source§fn insert_front(&mut self, front: Vec<Attribute>)
fn insert_front(&mut self, front: Vec<Attribute>)
Expands this vector by attaching the given value to the front of this vector.
Source§fn get_attribute_inner(&self, path: &str) -> Option<&TokenStream2>
fn get_attribute_inner(&self, path: &str) -> Option<&TokenStream2>
#[path(inner)]
impl Eq for Local
impl StructuralPartialEq for Local
Auto Trait Implementations§
impl Freeze for Local
impl RefUnwindSafe for Local
impl !Send for Local
impl !Sync for Local
impl Unpin for Local
impl UnsafeUnpin for Local
impl UnwindSafe for Local
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more