pub struct ClipToken(/* private fields */);Expand description
Proof that a clip was narrowed, and the only way to widen one back.
Held by Clipped and consumed by Painter::pop_clip. The field is
private, so the sole way for widget code to obtain one is to have narrowed
the clip first: a child still cannot draw outside the region its parent gave
it. Backends implementing Painter by hand build tokens with
ClipToken::restoring.
Implementations§
Trait Implementations§
impl Copy for ClipToken
impl Eq for ClipToken
impl StructuralPartialEq for ClipToken
Auto Trait Implementations§
impl Freeze for ClipToken
impl RefUnwindSafe for ClipToken
impl Send for ClipToken
impl Sync for ClipToken
impl Unpin for ClipToken
impl UnsafeUnpin for ClipToken
impl UnwindSafe for ClipToken
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