pub struct AttributeInfo {
pub ident: Ident,
pub type_: Ident,
pub use_: Use,
pub default: Option<String>,
}Expand description
Type information that contains data about attribute definitions.
Fields§
§ident: IdentIdentifier of the attribute.
type_: IdentType of the attribute.
use_: UseUsage of the attribute.
default: Option<String>Default value of the attribute.
Implementations§
Trait Implementations§
Source§impl Clone for AttributeInfo
impl Clone for AttributeInfo
Source§fn clone(&self) -> AttributeInfo
fn clone(&self) -> AttributeInfo
Returns a copy 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 AttributeInfo
impl Debug for AttributeInfo
Source§impl TypeEq for AttributeInfo
impl TypeEq for AttributeInfo
Source§fn type_eq(&self, other: &Self, types: &Types) -> bool
fn type_eq(&self, other: &Self, types: &Types) -> bool
Check if this instance is equal to the
other instance using the passed
types to resolve identifiers.Source§fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &Types) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &Types) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
Check if the two passed iterators contain type equal elements.
Auto Trait Implementations§
impl Freeze for AttributeInfo
impl RefUnwindSafe for AttributeInfo
impl Send for AttributeInfo
impl Sync for AttributeInfo
impl Unpin for AttributeInfo
impl UnwindSafe for AttributeInfo
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