pub struct StripStorage {
pub strips: Vec<Strip>,
pub alphas: Vec<u8>,
generation_mode: GenerationMode,
}Expand description
A storage for storing strip-related data.
Fields§
§strips: Vec<Strip>The strips in the storage.
alphas: Vec<u8>The alphas in the storage.
generation_mode: GenerationModeImplementations§
Source§impl StripStorage
impl StripStorage
Sourcepub fn new(generation_mode: GenerationMode) -> Self
pub fn new(generation_mode: GenerationMode) -> Self
Create a new strip storage with the given generation mode.
Sourcepub fn generation_mode(&self) -> GenerationMode
pub fn generation_mode(&self) -> GenerationMode
Get the current generation mode.
Sourcepub fn set_generation_mode(&mut self, mode: GenerationMode)
pub fn set_generation_mode(&mut self, mode: GenerationMode)
Set the generation mode of the storage.
Trait Implementations§
Source§impl Debug for StripStorage
impl Debug for StripStorage
Source§impl Default for StripStorage
impl Default for StripStorage
Source§fn default() -> StripStorage
fn default() -> StripStorage
Returns the “default value” for a type. Read more
Source§impl PartialEq for StripStorage
impl PartialEq for StripStorage
Source§fn eq(&self, other: &StripStorage) -> bool
fn eq(&self, other: &StripStorage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StripStorage
impl StructuralPartialEq for StripStorage
Auto Trait Implementations§
impl Freeze for StripStorage
impl RefUnwindSafe for StripStorage
impl Send for StripStorage
impl Sync for StripStorage
impl Unpin for StripStorage
impl UnsafeUnpin for StripStorage
impl UnwindSafe for StripStorage
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