[][src]Enum spirq::sym::Seg

pub enum Seg<'a> {
    Index(usize),
    Name(&'a str),
    Empty,
}

Variants

Index(usize)
Name(&'a str)
Empty

Methods

impl<'a> Seg<'a>[src]

pub fn index(idx: usize) -> Self[src]

pub fn name(name: &'a str) -> Self[src]

pub fn empty() -> Self[src]

pub fn is_index(&self) -> bool[src]

pub fn is_name(&self) -> bool[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl<'a> Clone for Seg<'a>[src]

impl<'a> Copy for Seg<'a>[src]

impl<'a> Debug for Seg<'a>[src]

impl<'a> Display for Seg<'a>[src]

impl<'a> Eq for Seg<'a>[src]

impl<'a> From<Seg<'a>> for Symbol[src]

impl<'a> PartialEq<Seg<'a>> for Seg<'a>[src]

impl<'a> StructuralEq for Seg<'a>[src]

impl<'a> StructuralPartialEq for Seg<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Seg<'a>

impl<'a> Send for Seg<'a>

impl<'a> Sync for Seg<'a>

impl<'a> Unpin for Seg<'a>

impl<'a> UnwindSafe for Seg<'a>

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> ToString for T where
    T: Display + ?Sized
[src]

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.