Struct genet_sdk::attr::Attr [−][src]
#[repr(C)]pub struct Attr { /* fields omitted */ }
An attribute object.
Methods
impl Attr
[src]
impl Attr
pub fn builder<C>(class: C) -> AttrBuilder where
C: Into<Fixed<AttrClass>>,
[src]
pub fn builder<C>(class: C) -> AttrBuilder where
C: Into<Fixed<AttrClass>>,
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, Box<Error + 'static>>
[src]
pub fn try_get(&self, layer: &Layer) -> Result<Variant, Box<Error + 'static>>
Returns the attribute value.
Trait Implementations
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
impl Debug for Attr
[src]
impl Debug for Attr