Struct cyfs_base::ObjectMapIterator
source · [−]pub struct ObjectMapIterator {
pub cache: ObjectMapOpEnvCacheRef,
/* private fields */
}
Fields
cache: ObjectMapOpEnvCacheRef
Implementations
sourceimpl 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 !RefUnwindSafe for ObjectMapIterator
impl Send for ObjectMapIterator
impl Sync for ObjectMapIterator
impl Unpin for ObjectMapIterator
impl !UnwindSafe for ObjectMapIterator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more