pub enum Attribute {
    Metadata(Rc<Metadata>),
    Expression(Rc<Expression>),
    Public(Location),
    Private(Location),
    Protected(Location),
    Internal(Location),
    Final(Location),
    Native(Location),
    Static(Location),
    Abstract(Location),
    Override(Location),
    Dynamic(Location),
}Variants§
Metadata(Rc<Metadata>)
Expression(Rc<Expression>)
Public(Location)
Private(Location)
Protected(Location)
Internal(Location)
Final(Location)
Native(Location)
Static(Location)
Abstract(Location)
Override(Location)
Dynamic(Location)
Implementations§
Source§impl Attribute
 
impl Attribute
pub fn location(&self) -> Location
pub fn has_access_modifier(list: &[Attribute]) -> bool
pub fn remove_metadata(list: &mut Vec<Attribute>, metadata: &Rc<Metadata>)
pub fn find_metadata(list: &[Attribute]) -> Vec<Rc<Metadata>>
pub fn find_expression(list: &[Attribute]) -> Option<Rc<Expression>>
pub fn find_public(list: &[Attribute]) -> Option<Location>
pub fn find_private(list: &[Attribute]) -> Option<Location>
pub fn find_protected(list: &[Attribute]) -> Option<Location>
pub fn find_internal(list: &[Attribute]) -> Option<Location>
pub fn find_final(list: &[Attribute]) -> Option<Location>
pub fn find_native(list: &[Attribute]) -> Option<Location>
pub fn find_static(list: &[Attribute]) -> Option<Location>
pub fn find_abstract(list: &[Attribute]) -> Option<Location>
pub fn find_override(list: &[Attribute]) -> Option<Location>
pub fn find_dynamic(list: &[Attribute]) -> Option<Location>
pub fn has(list: &[Attribute], attribute: &Attribute) -> bool
pub fn is_duplicate_access_modifier( list: &[Attribute], attribute: &Attribute, ) -> bool
pub fn is_metadata(&self) -> bool
pub fn is_public(&self) -> bool
pub fn is_private(&self) -> bool
pub fn is_protected(&self) -> bool
pub fn is_internal(&self) -> bool
pub fn is_final(&self) -> bool
pub fn is_native(&self) -> bool
pub fn is_static(&self) -> bool
pub fn is_abstract(&self) -> bool
pub fn is_override(&self) -> bool
pub fn is_dynamic(&self) -> bool
pub fn from_identifier_name( name: &str, location: &Location, ) -> Option<Attribute>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attribute
 
impl<'de> Deserialize<'de> for Attribute
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Attribute
impl !RefUnwindSafe for Attribute
impl !Send for Attribute
impl !Sync for Attribute
impl Unpin for Attribute
impl !UnwindSafe for Attribute
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
    Scheme: ApproxScheme,
 
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
    Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
 
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme,
 
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
 
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
 
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T
 
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
 
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
    Self: Sized + ApproxInto<Dst>,
 
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
    Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
 
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.