Enum floaout::bub::BubSampleKind
source · [−]pub enum BubSampleKind {
Lpcm,
Expr(BubFnsAST),
}
Variants
Lpcm
Expr(BubFnsAST)
Implementations
sourceimpl BubSampleKind
impl BubSampleKind
pub fn default_expr() -> Self
pub fn read<R: Read>(reader: &mut R) -> Result<Self>
pub fn read_and_calc_bytes<R: Read>(
reader: &mut R,
crc: &mut CRC<u32>
) -> Result<Self>
pub fn write<W: Write>(&self, writer: &mut W) -> Result<()>
pub fn write_and_calc_bytes<W: Write>(
&self,
writer: &mut W,
crc: &mut CRC<u32>
) -> Result<()>
pub fn from_u8(value: u8) -> Self
pub const fn to_u8(&self) -> u8
Trait Implementations
sourceimpl Clone for BubSampleKind
impl Clone for BubSampleKind
sourcefn clone(&self) -> BubSampleKind
fn clone(&self) -> BubSampleKind
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 more
sourceimpl Debug for BubSampleKind
impl Debug for BubSampleKind
sourceimpl From<Spanned<Node<BubFnsVariable, StartAndLenSpan<u16, u16>, BubFnsOutput>, StartAndLenSpan<u16, u16>>> for BubSampleKind
impl From<Spanned<Node<BubFnsVariable, StartAndLenSpan<u16, u16>, BubFnsOutput>, StartAndLenSpan<u16, u16>>> for BubSampleKind
sourceimpl PartialEq<BubSampleKind> for BubSampleKind
impl PartialEq<BubSampleKind> for BubSampleKind
sourcefn eq(&self, other: &BubSampleKind) -> bool
fn eq(&self, other: &BubSampleKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BubSampleKind) -> bool
fn ne(&self, other: &BubSampleKind) -> bool
This method tests for !=
.
impl StructuralPartialEq for BubSampleKind
Auto Trait Implementations
impl RefUnwindSafe for BubSampleKind
impl Send for BubSampleKind
impl Sync for BubSampleKind
impl Unpin for BubSampleKind
impl UnwindSafe for BubSampleKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more