#[non_exhaustive]pub enum CompareMode {
SideBySide,
Divider,
}Expand description
How a CompareView shows its two pictures.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SideBySide
One beside the other.
Divider
One over the other, each shown up to a divider that can be dragged.
Trait Implementations§
Source§impl Clone for CompareMode
impl Clone for CompareMode
Source§fn clone(&self) -> CompareMode
fn clone(&self) -> CompareMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompareMode
Source§impl Debug for CompareMode
impl Debug for CompareMode
Source§impl Default for CompareMode
impl Default for CompareMode
Source§fn default() -> CompareMode
fn default() -> CompareMode
Returns the “default value” for a type. Read more
impl Eq for CompareMode
Source§impl PartialEq for CompareMode
impl PartialEq for CompareMode
impl StructuralPartialEq for CompareMode
Auto Trait Implementations§
impl Freeze for CompareMode
impl RefUnwindSafe for CompareMode
impl Send for CompareMode
impl Sync for CompareMode
impl Unpin for CompareMode
impl UnsafeUnpin for CompareMode
impl UnwindSafe for CompareMode
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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<T> Brush for T
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,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.