Struct ListState
pub struct ListState<'a> {
offsets: &'a mut Vec<usize>,
saved_offsets_size: usize,
}
Expand description
Internal state for list building
Fields§
§offsets: &'a mut Vec<usize>
§saved_offsets_size: usize
Trait Implementations§
§impl BuilderSpecificState for ListState<'_>
impl BuilderSpecificState for ListState<'_>
§fn rollback(&mut self)
fn rollback(&mut self)
Called by
ParentState::drop
to revert any changes that were eagerly applied, if
ParentState::finish
was never invoked. Read more§fn finish(
&mut self,
_metadata_builder: &mut dyn MetadataBuilder,
_value_builder: &mut ValueBuilder,
)
fn finish( &mut self, _metadata_builder: &mut dyn MetadataBuilder, _value_builder: &mut ValueBuilder, )
Called by
ParentState::finish
to apply any pending builder-specific changes. Read moreAuto Trait Implementations§
impl<'a> Freeze for ListState<'a>
impl<'a> RefUnwindSafe for ListState<'a>
impl<'a> Send for ListState<'a>
impl<'a> Sync for ListState<'a>
impl<'a> Unpin for ListState<'a>
impl<'a> !UnwindSafe for ListState<'a>
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