pub struct StyleBlock {
pub styles: Vec<Style>,
pub source_span: Option<Span>,
}Expand description
The top-level styles block containing named style definitions.
Fields§
§styles: Vec<Style>Ordered list of style definitions.
source_span: Option<Span>Byte-range of the styles block in the source (for diagnostics).
Trait Implementations§
Source§impl Clone for StyleBlock
impl Clone for StyleBlock
Source§fn clone(&self) -> StyleBlock
fn clone(&self) -> StyleBlock
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 Debug for StyleBlock
impl Debug for StyleBlock
Source§impl Default for StyleBlock
impl Default for StyleBlock
Source§fn default() -> StyleBlock
fn default() -> StyleBlock
Returns the “default value” for a type. Read more
Source§impl PartialEq for StyleBlock
impl PartialEq for StyleBlock
Source§fn eq(&self, other: &StyleBlock) -> bool
fn eq(&self, other: &StyleBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StyleBlock
Auto Trait Implementations§
impl Freeze for StyleBlock
impl RefUnwindSafe for StyleBlock
impl Send for StyleBlock
impl Sync for StyleBlock
impl Unpin for StyleBlock
impl UnsafeUnpin for StyleBlock
impl UnwindSafe for StyleBlock
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