[−][src]Struct bracket::helper::each::Each
Iterate an array or object.
Accepts a single argument of the target to iterate, if the target is not an array or object this will return an error.
Each iteration sets a new scope with the local variables:
@first
: If this is the first iterationtrue
.@last
: If this is the last iterationtrue
.
Note that these variables are set even for objects where iteration order is not guaranteed which can be useful.
For objects the @key
variable contains the name of the field; for
arrays the @index
variable contains the current zero-based index.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Each
[src]
impl Send for Each
[src]
impl Sync for Each
[src]
impl Unpin for Each
[src]
impl UnwindSafe for Each
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,