pub struct ChunkOffsetAtomBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ChunkOffsetAtomBuilder<S>
impl<S: State> ChunkOffsetAtomBuilder<S>
Sourcepub fn build(self) -> ChunkOffsetAtomwhere
S: IsComplete,
pub fn build(self) -> ChunkOffsetAtomwhere
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn version(self, value: u8) -> ChunkOffsetAtomBuilder<SetVersion<S>>where
S::Version: IsUnset,
pub fn version(self, value: u8) -> ChunkOffsetAtomBuilder<SetVersion<S>>where
S::Version: IsUnset,
Sourcepub fn maybe_version(
self,
value: Option<u8>,
) -> ChunkOffsetAtomBuilder<SetVersion<S>>where
S::Version: IsUnset,
pub fn maybe_version(
self,
value: Option<u8>,
) -> ChunkOffsetAtomBuilder<SetVersion<S>>where
S::Version: IsUnset,
Sourcepub fn flags(self, value: [u8; 3]) -> ChunkOffsetAtomBuilder<SetFlags<S>>where
S::Flags: IsUnset,
pub fn flags(self, value: [u8; 3]) -> ChunkOffsetAtomBuilder<SetFlags<S>>where
S::Flags: IsUnset,
Sourcepub fn maybe_flags(
self,
value: Option<[u8; 3]>,
) -> ChunkOffsetAtomBuilder<SetFlags<S>>where
S::Flags: IsUnset,
pub fn maybe_flags(
self,
value: Option<[u8; 3]>,
) -> ChunkOffsetAtomBuilder<SetFlags<S>>where
S::Flags: IsUnset,
Sourcepub fn chunk_offsets(
self,
iter: impl IntoIterator<Item = u64>,
) -> ChunkOffsetAtomBuilder<SetChunkOffsets<S>>where
S::ChunkOffsets: IsUnset,
pub fn chunk_offsets(
self,
iter: impl IntoIterator<Item = u64>,
) -> ChunkOffsetAtomBuilder<SetChunkOffsets<S>>where
S::ChunkOffsets: IsUnset,
Required.
Sourcepub fn is_64bit(self, value: bool) -> ChunkOffsetAtomBuilder<SetIs64bit<S>>where
S::Is64bit: IsUnset,
pub fn is_64bit(self, value: bool) -> ChunkOffsetAtomBuilder<SetIs64bit<S>>where
S::Is64bit: IsUnset,
Sourcepub fn maybe_is_64bit(
self,
value: Option<bool>,
) -> ChunkOffsetAtomBuilder<SetIs64bit<S>>where
S::Is64bit: IsUnset,
pub fn maybe_is_64bit(
self,
value: Option<bool>,
) -> ChunkOffsetAtomBuilder<SetIs64bit<S>>where
S::Is64bit: IsUnset,
Source§impl<S: State> ChunkOffsetAtomBuilder<S>
impl<S: State> ChunkOffsetAtomBuilder<S>
pub fn chunk_offset(
self,
chunk_offset: impl Into<u64>,
) -> ChunkOffsetAtomBuilder<SetChunkOffsets<S>>where
S::ChunkOffsets: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ChunkOffsetAtomBuilder<S>
impl<S> RefUnwindSafe for ChunkOffsetAtomBuilder<S>
impl<S> Send for ChunkOffsetAtomBuilder<S>
impl<S> Sync for ChunkOffsetAtomBuilder<S>
impl<S> Unpin for ChunkOffsetAtomBuilder<S>
impl<S> UnsafeUnpin for ChunkOffsetAtomBuilder<S>
impl<S> UnwindSafe for ChunkOffsetAtomBuilder<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