pub struct ObjectMapIterator {
pub cache: ObjectMapOpEnvCacheRef,
/* private fields */
}Fields§
§cache: ObjectMapOpEnvCacheRefImplementations§
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 UnsafeUnpin 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> 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