[−][src]Struct srcinfo::ArchVec
ArchVec represents a Vector of possibly architecture specific fields.
Fields
arch: Option<String>
The architecture of the field, None is equivalent to 'any'
vec: Vec<String>
The items the field contains
Methods
impl ArchVec
[src]
pub fn new<S: Into<String>>(arch: Option<S>, vec: Vec<String>) -> ArchVec
[src]
Create a new ArchVec from a given architecture and vec
pub fn supports<S: AsRef<str>>(&self, s: S) -> bool
[src]
Checks if a given ArchVec supports a given architecture.
Returns true if self.arch is none or matches s.
Trait Implementations
impl Clone for ArchVec
[src]
fn clone(&self) -> ArchVec
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<ArchVec> for ArchVec
[src]
impl PartialOrd<ArchVec> for ArchVec
[src]
fn partial_cmp(&self, other: &ArchVec) -> Option<Ordering>
[src]
fn lt(&self, other: &ArchVec) -> bool
[src]
fn le(&self, other: &ArchVec) -> bool
[src]
fn gt(&self, other: &ArchVec) -> bool
[src]
fn ge(&self, other: &ArchVec) -> bool
[src]
impl Eq for ArchVec
[src]
impl Ord for ArchVec
[src]
fn cmp(&self, other: &ArchVec) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl<S: Into<String>> From<S> for ArchVec
[src]
impl Default for ArchVec
[src]
impl Debug for ArchVec
[src]
impl Hash for ArchVec
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,