pub struct PaddedGrid<S: Clone> {
pub grid: AlignedGrid<S>,
/* private fields */
}
Expand description
[AlignedGrid]
with padding.
Fields§
§grid: AlignedGrid<S>
Implementations§
Source§impl<S: Default + Clone> PaddedGrid<S>
impl<S: Default + Clone> PaddedGrid<S>
Sourcepub fn with_alloc_tracker(
width: usize,
height: usize,
padding: usize,
tracker: Option<&AllocTracker>,
) -> Result<Self, Error>
pub fn with_alloc_tracker( width: usize, height: usize, padding: usize, tracker: Option<&AllocTracker>, ) -> Result<Self, Error>
Create a new buffer.
Source§impl<S: Clone> PaddedGrid<S>
impl<S: Clone> PaddedGrid<S>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for PaddedGrid<S>
impl<S> RefUnwindSafe for PaddedGrid<S>where
S: RefUnwindSafe,
impl<S> Send for PaddedGrid<S>where
S: Send,
impl<S> Sync for PaddedGrid<S>where
S: Sync,
impl<S> Unpin for PaddedGrid<S>where
S: Unpin,
impl<S> UnwindSafe for PaddedGrid<S>where
S: UnwindSafe,
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