#[non_exhaustive]pub enum SectionSide {
Right,
Left,
}Expand description
Side of an operator section.
(+ 1) stores SectionSide::Right, while (1 +) stores
SectionSide::Left.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Right
Right section: operator followed by right operand.
Left
Left section: left operand followed by operator.
Trait Implementations§
Source§impl Clone for SectionSide
impl Clone for SectionSide
Source§fn clone(&self) -> SectionSide
fn clone(&self) -> SectionSide
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SectionSide
Source§impl Debug for SectionSide
impl Debug for SectionSide
impl Eq for SectionSide
Source§impl PartialEq for SectionSide
impl PartialEq for SectionSide
Source§fn eq(&self, other: &SectionSide) -> bool
fn eq(&self, other: &SectionSide) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SectionSide
Auto Trait Implementations§
impl Freeze for SectionSide
impl RefUnwindSafe for SectionSide
impl Send for SectionSide
impl Sync for SectionSide
impl Unpin for SectionSide
impl UnsafeUnpin for SectionSide
impl UnwindSafe for SectionSide
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