pub struct StyleBlock {
pub css: Symbol,
pub content_start: usize,
pub indent: usize,
}Expand description
A Style: section: the dedented CSS text, the file offset of its first character, and the
indentation stripped from each of its lines.
Fields§
§css: Symbol§content_start: usize§indent: usizeImplementations§
Source§impl StyleBlock
impl StyleBlock
Sourcepub fn file_offset(&self, css: &str, at: usize) -> usize
pub fn file_offset(&self, css: &str, at: usize) -> usize
The file offset of offset at in the stylesheet text css (this block’s own text).
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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