[−][src]Struct flag_algebra::operator::Type
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: usizeSize of the type.
id: usizeIndex 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]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
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]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> 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>,
V: MultiLane<T>,