[][src]Struct nbs::noteblocks::layer::Layer

pub struct Layer {
    pub name: String,
    pub locked: Option<bool>,
    pub volume: Option<i8>,
    pub stereo: Option<i8>,
    pub notes: HashMap<i16, Note>,
}

A Layer contains an list of notes and some additional information.

Fields

name: String

Name of the layer.

locked: Option<bool>

Only avabile in the new format version 4.

volume: Option<i8>

Only avabile in the new format since version 2.

stereo: Option<i8>

Only avabile in the new format since version 2.

notes: HashMap<i16, Note>

Methods

impl Layer[src]

pub fn new() -> Self[src]

Creates an new empty Layer.

pub fn from_format(format: NbsFormat) -> Self[src]

Creates an new Layer with default values for the specified format

Trait Implementations

impl Debug for Layer[src]

Auto Trait Implementations

impl RefUnwindSafe for Layer

impl Send for Layer

impl Sync for Layer

impl Unpin for Layer

impl UnwindSafe for Layer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.