pub enum AttrIvarName {
Unspecified,
Empty,
Name(rbs_constant_id_t),
}Expand description
Instance variable name specification for attributes.
Variants§
Unspecified
The attribute has inferred instance variable (nil)
Empty
The attribute has no instance variable (false)
Name(rbs_constant_id_t)
The attribute has instance variable with the given name
Implementations§
Source§impl AttrIvarName
impl AttrIvarName
Sourcepub fn from_raw(raw: rbs_attr_ivar_name_t) -> Self
pub fn from_raw(raw: rbs_attr_ivar_name_t) -> Self
Converts the raw C struct to the Rust enum.
Trait Implementations§
Source§impl Clone for AttrIvarName
impl Clone for AttrIvarName
Source§fn clone(&self) -> AttrIvarName
fn clone(&self) -> AttrIvarName
Returns a duplicate 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 AttrIvarName
impl Debug for AttrIvarName
Source§impl PartialEq for AttrIvarName
impl PartialEq for AttrIvarName
impl Eq for AttrIvarName
impl StructuralPartialEq for AttrIvarName
Auto Trait Implementations§
impl Freeze for AttrIvarName
impl RefUnwindSafe for AttrIvarName
impl Send for AttrIvarName
impl Sync for AttrIvarName
impl Unpin for AttrIvarName
impl UnwindSafe for AttrIvarName
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