pub struct FileTypeAtomBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> FileTypeAtomBuilder<S>
impl<S: State> FileTypeAtomBuilder<S>
Sourcepub fn build(self) -> FileTypeAtomwhere
S: IsComplete,
pub fn build(self) -> FileTypeAtomwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn major_brand(
self,
value: impl Into<FourCC>,
) -> FileTypeAtomBuilder<SetMajorBrand<S>>where
S::MajorBrand: IsUnset,
pub fn major_brand(
self,
value: impl Into<FourCC>,
) -> FileTypeAtomBuilder<SetMajorBrand<S>>where
S::MajorBrand: IsUnset,
Required.
Major brand - identifies the ‘best use’ of the file
Sourcepub fn minor_version(
self,
value: u32,
) -> FileTypeAtomBuilder<SetMinorVersion<S>>where
S::MinorVersion: IsUnset,
pub fn minor_version(
self,
value: u32,
) -> FileTypeAtomBuilder<SetMinorVersion<S>>where
S::MinorVersion: IsUnset,
Sourcepub fn maybe_minor_version(
self,
value: Option<u32>,
) -> FileTypeAtomBuilder<SetMinorVersion<S>>where
S::MinorVersion: IsUnset,
pub fn maybe_minor_version(
self,
value: Option<u32>,
) -> FileTypeAtomBuilder<SetMinorVersion<S>>where
S::MinorVersion: IsUnset,
Sourcepub fn compatible_brands(
self,
value: impl Into<Vec<FourCC>>,
) -> FileTypeAtomBuilder<SetCompatibleBrands<S>>where
S::CompatibleBrands: IsUnset,
pub fn compatible_brands(
self,
value: impl Into<Vec<FourCC>>,
) -> FileTypeAtomBuilder<SetCompatibleBrands<S>>where
S::CompatibleBrands: IsUnset,
Sourcepub fn maybe_compatible_brands(
self,
value: Option<impl Into<Vec<FourCC>>>,
) -> FileTypeAtomBuilder<SetCompatibleBrands<S>>where
S::CompatibleBrands: IsUnset,
pub fn maybe_compatible_brands(
self,
value: Option<impl Into<Vec<FourCC>>>,
) -> FileTypeAtomBuilder<SetCompatibleBrands<S>>where
S::CompatibleBrands: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for FileTypeAtomBuilder<S>
impl<S> RefUnwindSafe for FileTypeAtomBuilder<S>
impl<S> Send for FileTypeAtomBuilder<S>
impl<S> Sync for FileTypeAtomBuilder<S>
impl<S> Unpin for FileTypeAtomBuilder<S>
impl<S> UnsafeUnpin for FileTypeAtomBuilder<S>
impl<S> UnwindSafe for FileTypeAtomBuilder<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more