Enum ai::PictureSize
source · pub enum PictureSize {
x256,
x512,
x1024,
}Variants§
Trait Implementations§
source§impl Clone for PictureSize
impl Clone for PictureSize
source§fn clone(&self) -> PictureSize
fn clone(&self) -> PictureSize
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PictureSize
impl Debug for PictureSize
source§impl Default for PictureSize
impl Default for PictureSize
source§fn default() -> PictureSize
fn default() -> PictureSize
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PictureSize
impl<'de> Deserialize<'de> for PictureSize
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for PictureSize
impl Ord for PictureSize
source§fn cmp(&self, other: &PictureSize) -> Ordering
fn cmp(&self, other: &PictureSize) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PictureSize> for PictureSize
impl PartialEq<PictureSize> for PictureSize
source§fn eq(&self, other: &PictureSize) -> bool
fn eq(&self, other: &PictureSize) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<PictureSize> for PictureSize
impl PartialOrd<PictureSize> for PictureSize
source§fn partial_cmp(&self, other: &PictureSize) -> Option<Ordering>
fn partial_cmp(&self, other: &PictureSize) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for PictureSize
impl Serialize for PictureSize
source§impl ValueEnum for PictureSize
impl ValueEnum for PictureSize
impl Copy for PictureSize
impl Eq for PictureSize
impl StructuralEq for PictureSize
impl StructuralPartialEq for PictureSize
Auto Trait Implementations§
impl RefUnwindSafe for PictureSize
impl Send for PictureSize
impl Sync for PictureSize
impl Unpin for PictureSize
impl UnwindSafe for PictureSize
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.