pub enum SnapshotMode {
Permissive,
Normal,
Forced,
}Expand description
Controls how the SnapshotWidget paints its child.
Variants§
Permissive
The child is snapshotted, but only if all descendants can be snapshotted.
If there is a platform view in the children of a snapshot widget, the
snapshot will not be used and the child will be rendered using
SnapshotPainter::paint. This uses an un-snapshotted child and by default
paints it with no additional modification.
Normal
An error is thrown if the child cannot be snapshotted.
This setting is the default state of the SnapshotWidget.
Forced
The child is snapshotted and any child platform views are ignored.
This mode can be useful if there is a platform view descendant that does not need to be included in the snapshot.
Trait Implementations§
Source§impl Clone for SnapshotMode
impl Clone for SnapshotMode
impl Copy for SnapshotMode
Source§impl Debug for SnapshotMode
impl Debug for SnapshotMode
impl Eq for SnapshotMode
Source§impl Hash for SnapshotMode
impl Hash for SnapshotMode
Source§impl PartialEq for SnapshotMode
impl PartialEq for SnapshotMode
impl StructuralPartialEq for SnapshotMode
Auto Trait Implementations§
impl Forget for SnapshotMode
impl Freeze for SnapshotMode
impl Move for SnapshotMode
impl RefUnwindSafe for SnapshotMode
impl Send for SnapshotMode
impl Sync for SnapshotMode
impl Unpin for SnapshotMode
impl UnsafeUnpin for SnapshotMode
impl UnwindSafe for SnapshotMode
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.