pub struct ForloopObject<'p> { /* private fields */ }
Available on crate feature
stdlib
only.Implementations§
Trait Implementations§
Source§impl<'p> Clone for ForloopObject<'p>
impl<'p> Clone for ForloopObject<'p>
Source§fn clone(&self) -> ForloopObject<'p>
fn clone(&self) -> ForloopObject<'p>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'p> Debug for ForloopObject<'p>
impl<'p> Debug for ForloopObject<'p>
Source§impl<'p> ObjectView for ForloopObject<'p>
impl<'p> ObjectView for ForloopObject<'p>
Source§fn keys<'liquid_derive_k>(
&'liquid_derive_k self,
) -> Box<dyn Iterator<Item = KStringCow<'liquid_derive_k>> + 'liquid_derive_k>
fn keys<'liquid_derive_k>( &'liquid_derive_k self, ) -> Box<dyn Iterator<Item = KStringCow<'liquid_derive_k>> + 'liquid_derive_k>
Keys available for lookup.
Source§fn values<'liquid_derive_k>(
&'liquid_derive_k self,
) -> Box<dyn Iterator<Item = &'liquid_derive_k dyn ValueView> + 'liquid_derive_k>
fn values<'liquid_derive_k>( &'liquid_derive_k self, ) -> Box<dyn Iterator<Item = &'liquid_derive_k dyn ValueView> + 'liquid_derive_k>
Keys available for lookup.
Source§fn iter<'liquid_derive_k>(
&'liquid_derive_k self,
) -> Box<dyn Iterator<Item = (KStringCow<'liquid_derive_k>, &'liquid_derive_k dyn ValueView)> + 'liquid_derive_k>
fn iter<'liquid_derive_k>( &'liquid_derive_k self, ) -> Box<dyn Iterator<Item = (KStringCow<'liquid_derive_k>, &'liquid_derive_k dyn ValueView)> + 'liquid_derive_k>
Returns an iterator .
Source§fn contains_key(&self, index: &str) -> bool
fn contains_key(&self, index: &str) -> bool
Access a contained
BoxedValue
.Source§impl<'p> ValueView for ForloopObject<'p>
impl<'p> ValueView for ForloopObject<'p>
Source§fn render(&self) -> DisplayCow<'_>
fn render(&self) -> DisplayCow<'_>
A
Display
for a BoxedValue
rendered for the user.Source§fn source(&self) -> DisplayCow<'_>
fn source(&self) -> DisplayCow<'_>
A
Display
for a Value
as source code.Source§fn query_state(&self, state: State) -> bool
fn query_state(&self, state: State) -> bool
Query the value’s state
Source§fn to_kstr(&self) -> KStringCow<'_>
fn to_kstr(&self) -> KStringCow<'_>
Interpret as a string.
Source§fn as_object(&self) -> Option<&dyn ObjectView>
fn as_object(&self) -> Option<&dyn ObjectView>
Extracts the object value if it is a object.
Auto Trait Implementations§
impl<'p> Freeze for ForloopObject<'p>
impl<'p> !RefUnwindSafe for ForloopObject<'p>
impl<'p> !Send for ForloopObject<'p>
impl<'p> !Sync for ForloopObject<'p>
impl<'p> Unpin for ForloopObject<'p>
impl<'p> !UnwindSafe for ForloopObject<'p>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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