pub enum XMBranch {
Content = 0,
Presentation = 1,
}Expand description
Which branch of an ltx:XMDual to follow — Perl’s $branch string argument
to realizeXMNode, which is only ever 'content' or 'presentation'.
The discriminants are the child positions Perl’s
my ($content, $presentation) = element_nodes($node) unpacks, so the enum
indexes the children directly.
Variants§
Content = 0
The semantic branch — the first child.
Presentation = 1
The visual branch — the second child.
Trait Implementations§
impl Copy for XMBranch
impl Eq for XMBranch
impl StructuralPartialEq for XMBranch
Auto Trait Implementations§
impl Freeze for XMBranch
impl RefUnwindSafe for XMBranch
impl Send for XMBranch
impl Sync for XMBranch
impl Unpin for XMBranch
impl UnsafeUnpin for XMBranch
impl UnwindSafe for XMBranch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more