[][src]Struct floaout::format::bub::BubbleBlock

pub struct BubbleBlock {
    pub wav_block: WavBlock,
    pub bub_field: BubbleField,
}

Block of Bubble

Fields

wav_block: WavBlock

Block of Wav

bub_field: BubbleField

Bubble field

Methods

impl BubbleBlock[src]

pub fn from_wav_block_and_bub_field(
    wav_block: WavBlock,
    bub_field: BubbleField
) -> Self
[src]

This method casts WavBlock and BubbleField to Bubble.

Examples

use floaout::format::BubbleField;
use floaout::format::bub::{Bubble, BubbleBlock};
use floaout::format::wav::WavBlock;
 
let bub_field: BubbleField = vec![vec![vec![0], vec![2]], vec![vec![1], vec![3]]].into();
 
let bub_block = BubbleBlock::from_wav_block_and_bub_field(1.0.into(), bub_field);

Trait Implementations

impl Clone for BubbleBlock[src]

impl Debug for BubbleBlock[src]

impl PartialEq<BubbleBlock> for BubbleBlock[src]

impl PartialOrd<BubbleBlock> for BubbleBlock[src]

impl<'_, R: Read + ?Sized> ReadBlock<&'_ Bubble, BubbleBlock> for R[src]

impl StructuralPartialEq for BubbleBlock[src]

impl<'_, '_, W: Write + ?Sized> WriteBlock<&'_ Bubble, &'_ BubbleBlock> for W[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.