pub trait AttributesAccess {
// Required method
fn get_attributes_by_id(&self, id: &Identifier) -> Vec<Attribute>;
// Provided methods
fn get_single_attribute(&self, id: &Identifier) -> Option<Attribute> { ... }
fn get_attribute_value(&self, id: &Identifier) -> Value { ... }
fn get_resolution(&self) -> Option<ResolutionAttribute> { ... }
fn get_color(&self) -> Option<Color> { ... }
fn get_theme(&self) -> Option<Rc<Theme>> { ... }
fn get_size(&self) -> Option<Size2> { ... }
fn get_exports(&self) -> Vec<ExportCommand> { ... }
fn get_measures(&self) -> Vec<MeasureCommand> { ... }
fn get_custom_attributes(&self, id: &Identifier) -> Vec<Tuple> { ... }
}
Expand description
Access an attributes value by id.
Required Methods§
Sourcefn get_attributes_by_id(&self, id: &Identifier) -> Vec<Attribute>
fn get_attributes_by_id(&self, id: &Identifier) -> Vec<Attribute>
Get a value attribute by id.
Provided Methods§
Sourcefn get_single_attribute(&self, id: &Identifier) -> Option<Attribute>
fn get_single_attribute(&self, id: &Identifier) -> Option<Attribute>
Get a single attributes.
Sourcefn get_attribute_value(&self, id: &Identifier) -> Value
fn get_attribute_value(&self, id: &Identifier) -> Value
Get single attribute as value.
Sourcefn get_resolution(&self) -> Option<ResolutionAttribute>
fn get_resolution(&self) -> Option<ResolutionAttribute>
Get resolution attribute.
Sourcefn get_exports(&self) -> Vec<ExportCommand>
fn get_exports(&self) -> Vec<ExportCommand>
Get all export commands.
Sourcefn get_measures(&self) -> Vec<MeasureCommand>
fn get_measures(&self) -> Vec<MeasureCommand>
Get all measure commands.
Sourcefn get_custom_attributes(&self, id: &Identifier) -> Vec<Tuple>
fn get_custom_attributes(&self, id: &Identifier) -> Vec<Tuple>
Get custom attributes.