Trait mz_transform::attribute::AttributeContainer
source · pub trait AttributeContainer<A: Attribute> {
// Required methods
fn push_attribute(&mut self, value: A);
fn take_attribute(&mut self) -> Option<A>;
fn attribute_is_enabled(&self) -> bool;
fn get_attribute(&self) -> Option<&A>;
fn get_mut_attribute(&mut self) -> Option<&mut A>;
}
Expand description
An API for manipulating the of type A
an enclosing store.
Required Methods§
sourcefn push_attribute(&mut self, value: A)
fn push_attribute(&mut self, value: A)
Push the attribute to the store.
sourcefn take_attribute(&mut self) -> Option<A>
fn take_attribute(&mut self) -> Option<A>
Take the attribute from the store, leaving its slot empty.
sourcefn attribute_is_enabled(&self) -> bool
fn attribute_is_enabled(&self) -> bool
Check if the attribute is enabled.
sourcefn get_attribute(&self) -> Option<&A>
fn get_attribute(&self) -> Option<&A>
Get an immutable reference to the attribute.
sourcefn get_mut_attribute(&mut self) -> Option<&mut A>
fn get_mut_attribute(&mut self) -> Option<&mut A>
Get a mutable reference to the attribute.