pub struct SimpleBlock<'a> {
pub bracket: Bracket,
pub contents: Vec<ComponentValue<'a>>,
pub span: Span,
}Expand description
( … ), [ … ] or { … }.
Fields§
§bracket: Bracket§contents: Vec<ComponentValue<'a>>§span: SpanImplementations§
Source§impl<'a> SimpleBlock<'a>
impl<'a> SimpleBlock<'a>
Sourcepub fn contents(self, src: &'a str) -> BlockContents<'a>
pub fn contents(self, src: &'a str) -> BlockContents<'a>
Parses a {} block’s contents as declarations and rules, the way
style rules and nested at-rules hold them. src is the text the
block was parsed from.
Trait Implementations§
Source§impl<'a> Clone for SimpleBlock<'a>
impl<'a> Clone for SimpleBlock<'a>
Source§fn clone(&self) -> SimpleBlock<'a>
fn clone(&self) -> SimpleBlock<'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 moreSource§impl<'a> Debug for SimpleBlock<'a>
impl<'a> Debug for SimpleBlock<'a>
Source§impl Display for SimpleBlock<'_>
impl Display for SimpleBlock<'_>
Source§impl Drop for SimpleBlock<'_>
impl Drop for SimpleBlock<'_>
Source§impl<'a> PartialEq for SimpleBlock<'a>
impl<'a> PartialEq for SimpleBlock<'a>
impl<'a> StructuralPartialEq for SimpleBlock<'a>
Auto Trait Implementations§
impl<'a> Forget for SimpleBlock<'a>
impl<'a> Freeze for SimpleBlock<'a>
impl<'a> Move for SimpleBlock<'a>
impl<'a> RefUnwindSafe for SimpleBlock<'a>
impl<'a> Send for SimpleBlock<'a>
impl<'a> Sync for SimpleBlock<'a>
impl<'a> Unpin for SimpleBlock<'a>
impl<'a> UnsafeUnpin for SimpleBlock<'a>
impl<'a> UnwindSafe for SimpleBlock<'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