pub enum SwapVariant {
Delim {
open: char,
close: char,
label: &'static str,
},
BigOp {
latex: &'static str,
label: &'static str,
},
Accent {
mark: Mark,
label: &'static str,
},
UnderOverDeco {
over: Deco,
under: Deco,
label: &'static str,
},
Styled {
variant: Variant,
label: &'static str,
},
Matrix {
env: MatrixEnv,
label: &'static str,
},
}Expand description
Describes one swap menu alternative for a swappable structure.
Variants§
Delim
Delimiter pair replacement.
BigOp
Big operator replacement.
Accent
Accent mark replacement.
UnderOverDeco
Under or over decoration replacement.
Fields
Styled
Styled variant replacement.
Matrix
Matrix environment replacement.
Implementations§
Trait Implementations§
Source§impl Clone for SwapVariant
impl Clone for SwapVariant
Source§fn clone(&self) -> SwapVariant
fn clone(&self) -> SwapVariant
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 moreSource§impl Debug for SwapVariant
impl Debug for SwapVariant
Source§impl PartialEq for SwapVariant
impl PartialEq for SwapVariant
impl StructuralPartialEq for SwapVariant
Auto Trait Implementations§
impl Freeze for SwapVariant
impl RefUnwindSafe for SwapVariant
impl Send for SwapVariant
impl Sync for SwapVariant
impl Unpin for SwapVariant
impl UnsafeUnpin for SwapVariant
impl UnwindSafe for SwapVariant
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