Struct genet_abi::attr::Attr [−][src]
#[repr(C)]pub struct Attr { /* fields omitted */ }
An attribute object.
Methods
impl Attr
[src]
impl Attr
pub fn builder<C: Into<Fixed<AttrClass>>>(class: C) -> AttrBuilder
[src]
pub fn builder<C: Into<Fixed<AttrClass>>>(class: C) -> AttrBuilder
Creates a new builder object for Attr.
pub fn id(&self) -> Token
[src]
pub fn id(&self) -> Token
Returns the ID of self.
pub fn typ(&self) -> Token
[src]
pub fn typ(&self) -> Token
Returns the type of self.
pub fn is_value(&self) -> bool
[src]
pub fn is_value(&self) -> bool
Returns true if the self has no cast function. Otherwise, returns false.
ⓘImportant traits for Range<A>pub fn range(&self) -> Range<usize>
[src]
ⓘImportant traits for Range<A>
pub fn range(&self) -> Range<usize>
Returns the range of self.
pub fn try_get(&self, layer: &Layer) -> Result<Variant>
[src]
pub fn try_get(&self, layer: &Layer) -> Result<Variant>
Returns the attribute value.
Trait Implementations
impl Debug for Attr
[src]
impl Debug for Attr
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Into<Fixed<Attr>> for Attr
[src]
impl Into<Fixed<Attr>> for Attr
impl Into<Fixed<Attr>> for &'static Attr
[src]
impl Into<Fixed<Attr>> for &'static Attr