pub struct SetHeader(/* private fields */);Available on crate feature
set_header only.Implementations§
Methods from Deref<Target = AppendOnlyVec<(Box<str>, Box<str>)>>§
Sourcepub fn iter(&self) -> impl DoubleEndedIterator + ExactSizeIterator
pub fn iter(&self) -> impl DoubleEndedIterator + ExactSizeIterator
Return an Iterator over the elements of the vec.
Sourcepub fn push(&self, val: T) -> usize
pub fn push(&self, val: T) -> usize
Append an element to the array
This is notable in that it doesn’t require a &mut self, because it
does appropriate atomic synchronization.
The return value is the index tha was pushed to.
Sourcepub fn extend(&self, iter: impl IntoIterator<Item = T>)
pub fn extend(&self, iter: impl IntoIterator<Item = T>)
Extend the vec with the contents of an iterator.
Note: this is currently no more efficient than calling push for each
element of the iterator.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SetHeader
impl !RefUnwindSafe for SetHeader
impl Send for SetHeader
impl Sync for SetHeader
impl Unpin for SetHeader
impl UnwindSafe for SetHeader
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more