pub struct Layer<T: LayerBackend> { /* private fields */ }
Implementations§
Source§impl<T: LayerBackend> Layer<T>
impl<T: LayerBackend> Layer<T>
pub fn new( context: Option<&DeviceContext<T::DeviceContextType>>, width: usize, height: usize, canvas: &Canvas<T::CanvasType>, ) -> Result<Self, GraphicsError>
Source§impl Layer<DefaultLayer>
impl Layer<DefaultLayer>
pub fn default_new( context: Option<&DeviceContext<DefaultDeviceContext>>, width: usize, height: usize, canvas: &Canvas<DefaultCanvas>, ) -> Result<Self, GraphicsError>
Auto Trait Implementations§
impl<T> Freeze for Layer<T>where
T: Freeze,
impl<T> RefUnwindSafe for Layer<T>where
T: RefUnwindSafe,
impl<T> Send for Layer<T>where
T: Send,
impl<T> Sync for Layer<T>where
T: Sync,
impl<T> Unpin for Layer<T>where
T: Unpin,
impl<T> UnwindSafe for Layer<T>where
T: 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