pub enum SuiteOrCodename {
Suite(Suite),
Codename(Codename),
}
Expand description
Represents either a suite or codename
This enum is useful whenever a suite name or codename works
Variants§
Implementations§
Source§impl SuiteOrCodename
impl SuiteOrCodename
Sourcepub const EXPERIMENTAL: Self
pub const EXPERIMENTAL: Self
Experimental
Sourcepub const OLDSTABLE_PU: Self
pub const OLDSTABLE_PU: Self
Oldstable propoused-updates
Sourcepub const STABLE_BACKPORTS: Self
pub const STABLE_BACKPORTS: Self
Stable backports
Trait Implementations§
Source§impl Clone for SuiteOrCodename
impl Clone for SuiteOrCodename
Source§fn clone(&self) -> SuiteOrCodename
fn clone(&self) -> SuiteOrCodename
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 SuiteOrCodename
impl Debug for SuiteOrCodename
Source§impl<'de> Deserialize<'de> for SuiteOrCodename
impl<'de> Deserialize<'de> for SuiteOrCodename
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 Display for SuiteOrCodename
impl Display for SuiteOrCodename
Source§impl From<Codename> for SuiteOrCodename
impl From<Codename> for SuiteOrCodename
Source§impl From<Suite> for SuiteOrCodename
impl From<Suite> for SuiteOrCodename
Source§impl From<SuiteOrCodename> for Codename
impl From<SuiteOrCodename> for Codename
Source§fn from(value: SuiteOrCodename) -> Self
fn from(value: SuiteOrCodename) -> Self
Converts to this type from the input type.
Source§impl From<SuiteOrCodename> for Suite
impl From<SuiteOrCodename> for Suite
Source§fn from(value: SuiteOrCodename) -> Self
fn from(value: SuiteOrCodename) -> Self
Converts to this type from the input type.
Source§impl FromStr for SuiteOrCodename
impl FromStr for SuiteOrCodename
Source§impl Hash for SuiteOrCodename
impl Hash for SuiteOrCodename
Source§impl PartialEq for SuiteOrCodename
impl PartialEq for SuiteOrCodename
Source§impl Serialize for SuiteOrCodename
impl Serialize for SuiteOrCodename
Source§impl TryFrom<&str> for SuiteOrCodename
impl TryFrom<&str> for SuiteOrCodename
impl Copy for SuiteOrCodename
impl Eq for SuiteOrCodename
impl StructuralPartialEq for SuiteOrCodename
Auto Trait Implementations§
impl Freeze for SuiteOrCodename
impl RefUnwindSafe for SuiteOrCodename
impl Send for SuiteOrCodename
impl Sync for SuiteOrCodename
impl Unpin for SuiteOrCodename
impl UnwindSafe for SuiteOrCodename
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
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§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.