pub struct CssKeywordText<'a> { /* private fields */ }Expand description
Borrowed CSS keyword text compared under the ASCII case-insensitive rules used by CSS keyword grammars.
Implementations§
Source§impl<'a> CssKeywordText<'a>
impl<'a> CssKeywordText<'a>
Sourcepub fn equals(self, expected: &str) -> bool
pub fn equals(self, expected: &str) -> bool
Returns whether the complete text equals expected ignoring ASCII case.
Sourcepub fn strip_prefix(self, expected: &str) -> Option<&'a str>
pub fn strip_prefix(self, expected: &str) -> Option<&'a str>
Removes an ASCII case-insensitive prefix and returns the borrowed remainder.
Sourcepub fn strip_suffix(self, expected: &str) -> Option<&'a str>
pub fn strip_suffix(self, expected: &str) -> Option<&'a str>
Removes an ASCII case-insensitive suffix and returns the borrowed remainder.
Trait Implementations§
Source§impl<'a> Clone for CssKeywordText<'a>
impl<'a> Clone for CssKeywordText<'a>
Source§fn clone(&self) -> CssKeywordText<'a>
fn clone(&self) -> CssKeywordText<'a>
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 moreimpl<'a> Copy for CssKeywordText<'a>
Auto Trait Implementations§
impl<'a> Freeze for CssKeywordText<'a>
impl<'a> RefUnwindSafe for CssKeywordText<'a>
impl<'a> Send for CssKeywordText<'a>
impl<'a> Sync for CssKeywordText<'a>
impl<'a> Unpin for CssKeywordText<'a>
impl<'a> UnsafeUnpin for CssKeywordText<'a>
impl<'a> UnwindSafe for CssKeywordText<'a>
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