[−][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: usize
Size of the type.
id: usize
Index of the type in the list of unlabeled flags of this size.
Implementations
impl<F> Type<F>
[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 from_flag<G>(g: &G) -> Self where
F: Flag,
G: Into<F> + Clone,
[src]
F: Flag,
G: Into<F> + Clone,
Create the type corresponding to g
pub fn types_with_size(size: usize) -> impl Iterator<Item = Self> where
F: Flag,
[src]
F: Flag,
Iterate on all types of a given size.
pub fn print_concise(&self) -> String
[src]
Print the type identifier in a short way.
Trait Implementations
impl<F> Clone for Type<F>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F> Copy for Type<F>
[src]
impl<F: Debug> Debug for Type<F>
[src]
impl<F> Display for Type<F>
[src]
impl<F> Eq for Type<F>
[src]
impl<F: Hash> Hash for Type<F>
[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<F> Ord for Type<F>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<F> PartialEq<Type<F>> for Type<F>
[src]
impl<F> PartialOrd<Type<F>> for Type<F>
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for Type<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for Type<F> where
F: Send,
F: Send,
impl<F> Sync for Type<F> where
F: Sync,
F: Sync,
impl<F> Unpin for Type<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Type<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub unsafe fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,