pub struct Selector { /* private fields */ }
Expand description
Implementations§
Source§impl Selector
impl Selector
Sourcepub fn nest_selector(&self, other: Self) -> Self
pub fn nest_selector(&self, other: Self) -> Self
Returns other nested under self
Trait Implementations§
Source§impl ASTNode for Selector
impl ASTNode for Selector
fn from_reader( reader: &mut impl TokenReader<CSSToken, Span>, ) -> Result<Self, ParseError>
Source§fn to_string_from_buffer(
&self,
buf: &mut impl ToString,
settings: &ToStringSettings,
depth: u8,
)
fn to_string_from_buffer( &self, buf: &mut impl ToString, settings: &ToStringSettings, depth: u8, )
Depth indicates the indentation of current block
Source§fn get_position(&self) -> Option<&Span>
fn get_position(&self) -> Option<&Span>
Returns position of node as span as it was parsed. May be invalid or none after mutation
Source§fn from_string(
string: String,
source_id: SourceId,
offset: Option<usize>,
) -> Result<Self, ParseError>
fn from_string( string: String, source_id: SourceId, offset: Option<usize>, ) -> Result<Self, ParseError>
Parses structure from string
Source§fn to_string(&self, settings: &ToStringSettings) -> String
fn to_string(&self, settings: &ToStringSettings) -> String
Returns structure as valid string. If
SourceMap
passed will add mappings to SourceMapimpl Eq for Selector
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnwindSafe for Selector
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