pub struct Fn { /* private fields */ }Implementations§
Source§impl Fn
impl Fn
pub fn ptr_syn_attr(&self) -> *const Vec<Attribute>
pub fn ptr_syn_sig(&self) -> *const Signature
pub fn ptr_syn_block(&self) -> *const Block
pub fn syn_attr<'o>(&self) -> &'o Vec<Attribute>
pub fn syn_sig<'o>(&self) -> &'o Signature
pub fn syn_block<'o>(&self) -> &'o Block
pub fn syn_id(&self) -> SynId
pub fn type_id(&self) -> TypeId
Trait Implementations§
Source§impl AttributeHelper for Fn
impl AttributeHelper for Fn
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 Fn
impl StructuralPartialEq for Fn
Auto Trait Implementations§
impl Freeze for Fn
impl RefUnwindSafe for Fn
impl !Send for Fn
impl !Sync for Fn
impl Unpin for Fn
impl UnsafeUnpin for Fn
impl UnwindSafe for Fn
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