Struct forma::Composition
source · pub struct Composition { /* private fields */ }
Implementations§
source§impl Composition
impl Composition
pub fn new() -> Self
pub fn create_layer(&mut self) -> Layer
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn insert(&mut self, order: Order, layer: Layer) -> Option<Layer>
pub fn remove(&mut self, order: Order) -> Option<Layer>
pub fn get_order_if_stored(&self, geom_id: GeomId) -> Option<Order>
pub fn get(&self, order: Order) -> Option<&Layer>
pub fn get_mut(&mut self, order: Order) -> Option<&mut Layer>
pub fn get_mut_or_insert_default(&mut self, order: Order) -> &mut Layer
pub fn layers(&self) -> impl ExactSizeIterator<Item = (Order, &Layer)> + '_
pub fn layers_mut( &mut self, ) -> impl ExactSizeIterator<Item = (Order, &mut Layer)> + '_
pub fn compact_geom(&mut self)
Trait Implementations§
source§impl Debug for Composition
impl Debug for Composition
source§impl Default for Composition
impl Default for Composition
source§fn default() -> Composition
fn default() -> Composition
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Composition
impl !RefUnwindSafe for Composition
impl !Send for Composition
impl !Sync for Composition
impl Unpin for Composition
impl !UnwindSafe for Composition
Blanket Implementations§
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