[][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 to_string(&self) -> String
[src]

Write string that identify the type.

Trait Implementations

impl PartialEq<Type> for Type
[src]

impl Eq for Type
[src]

impl Clone for Type
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Type
[src]

impl Debug for Type
[src]

impl Hash for Type
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Type

impl Sync for Type

Blanket Implementations

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

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

type Owned = T

impl<T> From for T
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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