Enum rsass::sass::StringPart
source · pub enum StringPart {
Raw(String),
Interpolation(Value),
}
Expand description
A part of a string value, either a string or a value to interpolate from.
Variants§
Trait Implementations§
source§impl Clone for StringPart
impl Clone for StringPart
source§fn clone(&self) -> StringPart
fn clone(&self) -> StringPart
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 StringPart
impl Debug for StringPart
source§impl From<&str> for StringPart
impl From<&str> for StringPart
source§impl PartialEq for StringPart
impl PartialEq for StringPart
source§fn eq(&self, other: &StringPart) -> bool
fn eq(&self, other: &StringPart) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StringPart
impl PartialOrd for StringPart
source§fn partial_cmp(&self, other: &StringPart) -> Option<Ordering>
fn partial_cmp(&self, other: &StringPart) -> 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 StringPart
impl StructuralEq for StringPart
impl StructuralPartialEq for StringPart
Auto Trait Implementations§
impl RefUnwindSafe for StringPart
impl Send for StringPart
impl Sync for StringPart
impl Unpin for StringPart
impl UnwindSafe for StringPart
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