pub enum InputSyntax {
SASS,
SCSS,
}Expand description
A wrapper type to make it much clearer which SASS syntax we expect data to be in.
Replaces the use of a boolean to model data that is SASS as opposed to SCSS.
Variants§
Trait Implementations§
Source§impl Clone for InputSyntax
impl Clone for InputSyntax
Source§fn clone(&self) -> InputSyntax
fn clone(&self) -> InputSyntax
Returns a duplicate of the value. Read more
1.0.0 · 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 InputSyntax
impl Debug for InputSyntax
Source§impl Hash for InputSyntax
impl Hash for InputSyntax
Source§impl Ord for InputSyntax
impl Ord for InputSyntax
Source§fn cmp(&self, other: &InputSyntax) -> Ordering
fn cmp(&self, other: &InputSyntax) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InputSyntax
impl PartialEq for InputSyntax
Source§impl PartialOrd for InputSyntax
impl PartialOrd for InputSyntax
impl Copy for InputSyntax
impl Eq for InputSyntax
impl StructuralPartialEq for InputSyntax
Auto Trait Implementations§
impl Freeze for InputSyntax
impl RefUnwindSafe for InputSyntax
impl Send for InputSyntax
impl Sync for InputSyntax
impl Unpin for InputSyntax
impl UnwindSafe for InputSyntax
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