[][src]Struct srcinfo::ArchVec

pub struct ArchVec {
    pub arch: Option<String>,
    pub vec: Vec<String>,
}

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

Implementations

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]

impl Debug for ArchVec[src]

impl Default for ArchVec[src]

impl Eq for ArchVec[src]

impl<S: Into<String>> From<S> for ArchVec[src]

impl Hash for ArchVec[src]

impl Ord for ArchVec[src]

impl PartialEq<ArchVec> for ArchVec[src]

impl PartialOrd<ArchVec> for ArchVec[src]

impl StructuralEq for ArchVec[src]

impl StructuralPartialEq for ArchVec[src]

Auto Trait Implementations

impl RefUnwindSafe for ArchVec

impl Send for ArchVec

impl Sync for ArchVec

impl Unpin for ArchVec

impl UnwindSafe for ArchVec

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.