pub enum Architectures {
Any,
Some(Vec<SystemArchitecture>),
}Expand description
Represents multiple valid alpm-architectures.
Can be either “any” or multiple specific SystemArchitectures.
Architectures enum can be created from a vector of Architectures using a TryFrom
implementation.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for Architectures
impl Clone for Architectures
Source§fn clone(&self) -> Architectures
fn clone(&self) -> Architectures
Returns a duplicate 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 Architectures
impl Debug for Architectures
Source§impl<'de> Deserialize<'de> for Architectures
impl<'de> Deserialize<'de> for Architectures
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 Architectures
impl Display for Architectures
Source§impl From<&Architectures> for Vec<Architecture>
impl From<&Architectures> for Vec<Architecture>
Source§fn from(value: &Architectures) -> Self
fn from(value: &Architectures) -> Self
Converts an Architectures into a vector of Architectures.
Source§impl From<Architecture> for Architectures
impl From<Architecture> for Architectures
Source§fn from(value: Architecture) -> Self
fn from(value: Architecture) -> Self
Converts a single Architecture into an Architectures.
Source§impl FromStr for Architectures
impl FromStr for Architectures
Source§impl Hash for Architectures
impl Hash for Architectures
Source§impl IntoIterator for &Architectures
impl IntoIterator for &Architectures
Source§fn into_iter(self) -> Self::IntoIter
fn into_iter(self) -> Self::IntoIter
Creates an iterator over Architectures.
Source§type Item = Architecture
type Item = Architecture
The type of the elements being iterated over.
Source§type IntoIter = IntoIter<Architecture>
type IntoIter = IntoIter<Architecture>
Which kind of iterator are we turning this into?
Source§impl Ord for Architectures
impl Ord for Architectures
Source§fn cmp(&self, other: &Architectures) -> Ordering
fn cmp(&self, other: &Architectures) -> 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 for Architectures
impl PartialEq for Architectures
Source§impl PartialOrd for Architectures
impl PartialOrd for Architectures
Source§impl Serialize for Architectures
impl Serialize for Architectures
Source§impl TryFrom<&str> for Architectures
impl TryFrom<&str> for Architectures
Source§impl TryFrom<Vec<&Architecture>> for Architectures
impl TryFrom<Vec<&Architecture>> for Architectures
Source§fn try_from(value: Vec<&Architecture>) -> Result<Self, Self::Error>
fn try_from(value: Vec<&Architecture>) -> Result<Self, Self::Error>
Tries to convert a vector of Architecture into an Architectures.
§Errors
The conversion fails if the input vector contains Architecture::Any along with other
architectures.
Source§impl TryFrom<Vec<Architecture>> for Architectures
impl TryFrom<Vec<Architecture>> for Architectures
Source§fn try_from(value: Vec<Architecture>) -> Result<Self, Self::Error>
fn try_from(value: Vec<Architecture>) -> Result<Self, Self::Error>
Tries to convert a vector of Architecture into an Architectures.
Delegates to the TryFrom implementation for Vec<&Architecture>.
Source§impl VariantNames for Architectures
impl VariantNames for Architectures
impl Eq for Architectures
impl StructuralPartialEq for Architectures
Auto Trait Implementations§
impl Freeze for Architectures
impl RefUnwindSafe for Architectures
impl Send for Architectures
impl Sync for Architectures
impl Unpin for Architectures
impl UnwindSafe for Architectures
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