pub enum DoubletRole {
Marker,
Wrapper,
Pair,
DuplicatePair,
Triplet(Triplet),
Foreign,
}Expand description
What a doublet is in the encoding.
Variants§
Marker
Pair or Nothing.
Wrapper
(w: P f), the from-part of the pairs whose source it is.
Pair
(p: w t), the from-part and to-part of a triplet.
DuplicatePair
(d: p i), the pair of a triplet whose outer (T p) another triplet took.
Triplet(Triplet)
The outer doublet of a triplet.
Foreign
A doublet the encoding does not know: not a triplet.
Implementations§
Source§impl DoubletRole
impl DoubletRole
Sourcepub fn is_auxiliary(&self) -> bool
pub fn is_auxiliary(&self) -> bool
Whether the doublet is a wrapper, a pair or a duplicate pair.
Trait Implementations§
Source§impl Clone for DoubletRole
impl Clone for DoubletRole
impl Copy for DoubletRole
Source§impl Debug for DoubletRole
impl Debug for DoubletRole
impl Eq for DoubletRole
Source§impl PartialEq for DoubletRole
impl PartialEq for DoubletRole
impl StructuralPartialEq for DoubletRole
Auto Trait Implementations§
impl Freeze for DoubletRole
impl RefUnwindSafe for DoubletRole
impl Send for DoubletRole
impl Sync for DoubletRole
impl Unpin for DoubletRole
impl UnsafeUnpin for DoubletRole
impl UnwindSafe for DoubletRole
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more