Struct hexodsp::matrix_repr::MatrixRepr
source · [−]pub struct MatrixRepr {
pub cells: Vec<CellRepr>,
pub params: Vec<(ParamId, f32, Option<f32>)>,
pub atoms: Vec<(ParamId, SAtom)>,
pub patterns: Vec<Option<PatternRepr>>,
pub properties: Vec<(String, SAtom)>,
pub block_funs: Vec<Option<BlockFunSnapshot>>,
pub version: i64,
}
Fields
cells: Vec<CellRepr>
params: Vec<(ParamId, f32, Option<f32>)>
atoms: Vec<(ParamId, SAtom)>
patterns: Vec<Option<PatternRepr>>
properties: Vec<(String, SAtom)>
block_funs: Vec<Option<BlockFunSnapshot>>
version: i64
Implementations
sourceimpl MatrixRepr
impl MatrixRepr
pub fn empty() -> Self
pub fn write_to_mem(&mut self) -> Vec<u8>
pub fn write_to_file(&mut self, filepath: &str) -> Result<()>
pub fn read_from_mem(data: &[u8]) -> Result<MatrixRepr, MatrixDeserError>
pub fn read_from_file(filepath: &str) -> Result<MatrixRepr, MatrixDeserError>
pub fn deserialize(s: &str) -> Result<MatrixRepr, MatrixDeserError>
pub fn serialize(&mut self) -> String
Trait Implementations
sourceimpl Clone for MatrixRepr
impl Clone for MatrixRepr
sourcefn clone(&self) -> MatrixRepr
fn clone(&self) -> MatrixRepr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for MatrixRepr
impl Send for MatrixRepr
impl Sync for MatrixRepr
impl Unpin for MatrixRepr
impl UnwindSafe for MatrixRepr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more