[−][src]Struct nbs::noteblocks::layer::Layer
A Layer contains an list of notes and some additional information.
Fields
name: StringName 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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,