Enum rsass::input::SourceKind
source · pub enum SourceKind {
Root,
Import(SourcePos),
Use(SourcePos),
Forward(SourcePos),
Call(String, SourcePos),
}
Expand description
The kind of loading, or why a load is attempted.
Variants§
Root
The root file that rsass
loads.
Import(SourcePos)
An @import
rule at the given position.
Use(SourcePos)
An @use
rule at the given position.
Forward(SourcePos)
An @forward
rule at the given position.
Call(String, SourcePos)
A call to a named function at the given position.
Implementations§
Trait Implementations§
source§impl Clone for SourceKind
impl Clone for SourceKind
source§fn clone(&self) -> SourceKind
fn clone(&self) -> SourceKind
Returns a copy 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 SourceKind
impl Debug for SourceKind
source§impl Display for SourceKind
impl Display for SourceKind
source§impl Ord for SourceKind
impl Ord for SourceKind
source§fn cmp(&self, other: &SourceKind) -> Ordering
fn cmp(&self, other: &SourceKind) -> 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 SourceKind
impl PartialEq for SourceKind
source§fn eq(&self, other: &SourceKind) -> bool
fn eq(&self, other: &SourceKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SourceKind
impl PartialOrd for SourceKind
source§fn partial_cmp(&self, other: &SourceKind) -> Option<Ordering>
fn partial_cmp(&self, other: &SourceKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SourceKind
impl StructuralPartialEq for SourceKind
Auto Trait Implementations§
impl Freeze for SourceKind
impl RefUnwindSafe for SourceKind
impl Send for SourceKind
impl Sync for SourceKind
impl Unpin for SourceKind
impl UnwindSafe for SourceKind
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