pub struct ChannelsRef<'data, C> { /* private fields */ }
Expand description
Represent a single matrix with uniform channel type.
Created from Canvas::channels_u8
and related methods.
Implementations§
Source§impl<'data, C> ChannelsRef<'data, C>
impl<'data, C> ChannelsRef<'data, C>
pub fn layout(&self) -> &ChannelLayout<C>
pub fn as_slice(&self) -> &[C]
pub fn into_slice(self) -> &'data [C]
Auto Trait Implementations§
impl<'data, C> Freeze for ChannelsRef<'data, C>
impl<'data, C> RefUnwindSafe for ChannelsRef<'data, C>where
C: RefUnwindSafe,
impl<'data, C> Send for ChannelsRef<'data, C>where
C: Send,
impl<'data, C> Sync for ChannelsRef<'data, C>where
C: Sync,
impl<'data, C> Unpin for ChannelsRef<'data, C>where
C: Unpin,
impl<'data, C> UnwindSafe for ChannelsRef<'data, C>where
C: 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