pub struct ObjectMapIterator {
pub cache: ObjectMapOpEnvCacheRef,
/* private fields */
}
Fields§
§cache: ObjectMapOpEnvCacheRef
Implementations§
Source§impl ObjectMapIterator
impl ObjectMapIterator
pub fn new( skip: bool, target: &ObjectMap, cache: ObjectMapOpEnvCacheRef, ) -> Self
pub fn into_iterator(self) -> Self
pub fn is_end(&self) -> bool
pub fn step(&self) -> usize
pub fn depth(&self) -> usize
pub fn reset_depth(&mut self)
pub fn current_pos(&self) -> IteratorPosition
pub fn update_pos(&mut self, depth: usize, pos: IteratorPosition)
pub fn is_enough(&self) -> bool
pub fn inc_depth( &mut self, mode: ObjectMapContentMode, content_type: ObjectMapSimpleContentType, )
pub fn dec_depth(&mut self)
pub fn push_key_value( &mut self, key: &str, value: impl IntoObjectMapContentItem, )
pub fn push_value(&mut self, value: impl IntoObjectMapContentItem)
pub async fn next( &mut self, target: &ObjectMap, step: usize, ) -> BuckyResult<ObjectMapContentList>
pub async fn skip( &mut self, target: &ObjectMap, step: usize, ) -> BuckyResult<usize>
Auto Trait Implementations§
impl Freeze for ObjectMapIterator
impl !RefUnwindSafe for ObjectMapIterator
impl Send for ObjectMapIterator
impl Sync for ObjectMapIterator
impl Unpin for ObjectMapIterator
impl !UnwindSafe for ObjectMapIterator
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 more