[][src]Struct flag_algebra::operator::Type

pub struct Type {
    pub size: usize,
    pub id: usize,
}

Type (or root) of a flag. It is identified by its size and its id in the list of flags of that size.

Fields

size: usize

Size of the type.

id: usize

Index of the type in the list of unlabeled flags of this size.

Methods

impl Type[src]

pub fn new(size: usize, id: usize) -> Self[src]

Constructor for the type.

pub fn empty() -> Self[src]

Create a type of size 0.

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

Return wether the input has size zero

pub fn to_string(&self) -> String[src]

Write string that identify the type.

pub fn from_flag<F: Flag>(g: &F) -> Self[src]

pub fn print_concise(&self) -> String[src]

Print the basis information in a short way

Trait Implementations

impl Clone for Type[src]

impl Copy for Type[src]

impl Eq for Type[src]

impl PartialEq<Type> for Type[src]

impl Debug for Type[src]

impl Hash for Type[src]

impl StructuralPartialEq for Type[src]

impl StructuralEq for Type[src]

Auto Trait Implementations

impl Send for Type

impl Sync for Type

impl Unpin for Type

impl UnwindSafe for Type

impl RefUnwindSafe for Type

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,