pub struct PlacementIterator<'alloc> { /* private fields */ }Available on crate feature
kitty-graphics only.Expand description
Opaque reference to a Kitty graphics placement iterator.
Implementations§
Source§impl<'alloc> PlacementIterator<'alloc>
impl<'alloc> PlacementIterator<'alloc>
Sourcepub fn new_with_alloc<'ctx: 'alloc>(
alloc: &'alloc Allocator<'ctx>,
) -> Result<Self>
pub fn new_with_alloc<'ctx: 'alloc>( alloc: &'alloc Allocator<'ctx>, ) -> Result<Self>
Create a new placement iterator instance with a custom allocator.
See the crate-level documentation regarding custom memory management and lifetimes.
Sourcepub fn update(
&mut self,
graphics: &Graphics<'_>,
) -> Result<PlacementIteration<'_, 'alloc>>
pub fn update( &mut self, graphics: &Graphics<'_>, ) -> Result<PlacementIteration<'_, 'alloc>>
Update the placement iterator with the given graphics storage, returning a new placement iteration.
Trait Implementations§
Source§impl<'alloc> Debug for PlacementIterator<'alloc>
impl<'alloc> Debug for PlacementIterator<'alloc>
Source§impl Drop for PlacementIterator<'_>
impl Drop for PlacementIterator<'_>
Auto Trait Implementations§
impl<'alloc> !Send for PlacementIterator<'alloc>
impl<'alloc> !Sync for PlacementIterator<'alloc>
impl<'alloc> Freeze for PlacementIterator<'alloc>
impl<'alloc> RefUnwindSafe for PlacementIterator<'alloc>
impl<'alloc> Unpin for PlacementIterator<'alloc>
impl<'alloc> UnsafeUnpin for PlacementIterator<'alloc>
impl<'alloc> UnwindSafe for PlacementIterator<'alloc>
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