pub enum Const {
Free {
ptr_const: NonNull<ItemConst>,
vis_node: NodeIndex,
tid: TypeId,
},
Inher {
ptr_const: NonNull<ImplItemConst>,
vis_node: NodeIndex,
tid: TypeId,
},
TraitDefault {
ptr_const: NonNull<TraitItemConst>,
vis_node: NodeIndex,
tid: TypeId,
},
TraitImpl {
ptr_const: NonNull<ImplItemConst>,
vis_node: NodeIndex,
tid: TypeId,
},
}Variants§
Free
Fields
§
vis_node: NodeIndexRefer to the module documentation.
Inher
Fields
§
ptr_const: NonNull<ImplItemConst>Read-only pointer to a syntax tree node that never changes.
§
vis_node: NodeIndexRefer to the module documentation.
TraitDefault
Fields
§
ptr_const: NonNull<TraitItemConst>Read-only pointer to a syntax tree node that never changes.
§
vis_node: NodeIndexRefer to the module documentation.
TraitImpl
Fields
§
ptr_const: NonNull<ImplItemConst>Read-only pointer to a syntax tree node that never changes.
§
vis_node: NodeIndexRefer to the module documentation.
Implementations§
Trait Implementations§
Source§impl AttributeHelper for Const
impl AttributeHelper for Const
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 StructuralPartialEq for Const
Auto Trait Implementations§
impl Freeze for Const
impl RefUnwindSafe for Const
impl !Send for Const
impl !Sync for Const
impl Unpin for Const
impl UnsafeUnpin for Const
impl UnwindSafe for Const
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> 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