pub struct CssString { /* private fields */ }
Expand description
A string in css. May be quoted.
Implementations§
source§impl CssString
impl CssString
sourcepub fn opt_unquote(self) -> Self
pub fn opt_unquote(self) -> Self
If the value is name-like, make it unquoted.
sourcepub fn pref_dquotes(self) -> Self
pub fn pref_dquotes(self) -> Self
Adapt the kind of quotes as prefered for a css value.
sourcepub fn take_value(self) -> String
pub fn take_value(self) -> String
Take the string value, discarding quote information.
Trait Implementations§
source§impl From<CssString> for SassString
impl From<CssString> for SassString
source§impl PartialEq for CssString
impl PartialEq for CssString
source§impl PartialOrd for CssString
impl PartialOrd for CssString
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 CssString
impl StructuralEq for CssString
Auto Trait Implementations§
impl RefUnwindSafe for CssString
impl Send for CssString
impl Sync for CssString
impl Unpin for CssString
impl UnwindSafe for CssString
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