pub struct DrawStateWrap<T: Clone> { /* private fields */ }
Implementations§
Source§impl<T: Clone> DrawStateWrap<T>
impl<T: Clone> DrawStateWrap<T>
pub fn begin(&mut self, cx: &mut CxDraw<'_>, init: T) -> bool
pub fn begin_with<F, S>(&mut self, cx: &mut CxDraw<'_>, v: &S, init: F) -> bool
pub fn begin_state(&mut self, cx: &mut Cx) -> Option<&mut Option<T>>
pub fn get(&self) -> Option<T>
pub fn as_ref(&self) -> Option<&T>
pub fn as_mut(&mut self) -> Option<&mut T>
pub fn set(&mut self, value: T)
pub fn end(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DrawStateWrap<T>where
T: Freeze,
impl<T> RefUnwindSafe for DrawStateWrap<T>where
T: RefUnwindSafe,
impl<T> Send for DrawStateWrap<T>where
T: Send,
impl<T> Sync for DrawStateWrap<T>where
T: Sync,
impl<T> Unpin for DrawStateWrap<T>where
T: Unpin,
impl<T> UnwindSafe for DrawStateWrap<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