pub struct PositionedItems<'a> { /* private fields */ }
Expand description
Writer for a positioned items array.
This struct is created by ShowPositioned::items
.
Implementations§
Methods from Deref<Target = Array<'a>>§
sourcepub fn item<T: Primitive>(&mut self, value: T) -> &mut Self
pub fn item<T: Primitive>(&mut self, value: T) -> &mut Self
Write an item with a primitive value.
This is a shorthand for array.push().primitive(value)
.
sourcepub fn items<T: Primitive>(
&mut self,
values: impl IntoIterator<Item = T>,
) -> &mut Self
pub fn items<T: Primitive>( &mut self, values: impl IntoIterator<Item = T>, ) -> &mut Self
Write a sequence of items with primitive values.
Trait Implementations§
source§impl<'a> Deref for PositionedItems<'a>
impl<'a> Deref for PositionedItems<'a>
Auto Trait Implementations§
impl<'a> Freeze for PositionedItems<'a>
impl<'a> RefUnwindSafe for PositionedItems<'a>
impl<'a> Send for PositionedItems<'a>
impl<'a> Sync for PositionedItems<'a>
impl<'a> Unpin for PositionedItems<'a>
impl<'a> !UnwindSafe for PositionedItems<'a>
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