[−][src]Struct floaout::format::bub::Bubble
Details of the Bubble file.
Fields
version: u8
This is the number of Bubble
version.
bub_field_size: BubbleFieldSize
This includes length, width and height.
color: Color
This includes red, green, blue.
blocks: u64
This is number of block.
sampling_rate: u32
Sampling Rate
bits_per_sample: u16
Bits Per Sample
name_size: u8
Bubble Name Size
name: String
Name of Bubble
overall: BubbleField
Overall of Bubble field
Methods
impl Bubble
[src]
pub fn from_bub_field_size_and_bits_per_sample(
bub_field_size: BubbleFieldSize,
bits_per_sample: u16
) -> Self
[src]
bub_field_size: BubbleFieldSize,
bits_per_sample: u16
) -> Self
This method casts Bubble field size and bits per sample to Bubble
.
Examples
use floaout::format::bub::Bubble; let bub = Bubble::from_bub_field_size_and_bits_per_sample((0u8, 0u8, 0u8).into(), 32); assert_eq!( bub, Bubble { bub_field_size: (0u8, 0u8, 0u8).into(), bits_per_sample: 32, ..Default::default() } );
Trait Implementations
impl Clone for Bubble
[src]
impl Debug for Bubble
[src]
impl Default for Bubble
[src]
impl Eq for Bubble
[src]
impl From<Floaout> for Bubble
[src]
impl Hash for Bubble
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Bubble
[src]
fn cmp(&self, other: &Bubble) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Bubble> for Bubble
[src]
impl PartialOrd<Bubble> for Bubble
[src]
fn partial_cmp(&self, other: &Bubble) -> Option<Ordering>
[src]
fn lt(&self, other: &Bubble) -> bool
[src]
fn le(&self, other: &Bubble) -> bool
[src]
fn gt(&self, other: &Bubble) -> bool
[src]
fn ge(&self, other: &Bubble) -> bool
[src]
impl<'_, R: Read + ?Sized> ReadBlock<&'_ Bubble, BubbleBlock> for R
[src]
fn read_block(&mut self, bub: &Bubble) -> Result<BubbleBlock>
[src]
impl<R: Read + Seek> ReadFmt<Bubble, BubbleBlocks> for BufReader<R>
[src]
fn read_details(&mut self) -> Result<Bubble>
[src]
fn read_blocks(&mut self, bub: &Bubble) -> Result<BubbleBlocks>
[src]
impl StructuralEq for Bubble
[src]
impl StructuralPartialEq for Bubble
[src]
impl TryFrom<Wav> for Bubble
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_from(wav: Wav) -> Result<Self, Self::Error>
[src]
impl TryInto<Wav> for Bubble
[src]
type Error = &'static str
The type returned in the event of a conversion error.
fn try_into(self) -> Result<Wav, Self::Error>
[src]
impl<'_, '_, W: Write + ?Sized> WriteBlock<&'_ Bubble, &'_ BubbleBlock> for W
[src]
fn write_block(&mut self, bub: &Bubble, bub_block: &BubbleBlock) -> Result<()>
[src]
impl<W: Write> WriteFmt<Bubble, BubbleBlocks> for BufWriter<W>
[src]
fn write_details(&mut self, bub: &Bubble) -> Result<()>
[src]
fn write_blocks(&mut self, bub: &Bubble, bub_blocks: BubbleBlocks) -> Result<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Bubble
impl Send for Bubble
impl Sync for Bubble
impl Unpin for Bubble
impl UnwindSafe for Bubble
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,