pub struct RenderPrepErrorContext {
pub source: Option<Box<str>>,
pub selector: Option<Box<str>>,
pub selector_index: Option<usize>,
pub declaration: Option<Box<str>>,
pub declaration_index: Option<usize>,
pub token_offset: Option<usize>,
}Expand description
Extended optional context for render-prep errors.
Fields§
§source: Option<Box<str>>Optional source context (stylesheet href, inline style location, tokenizer phase).
selector: Option<Box<str>>Optional selector context.
selector_index: Option<usize>Optional selector index for structured consumers.
declaration: Option<Box<str>>Optional declaration context.
declaration_index: Option<usize>Optional declaration index for structured consumers.
token_offset: Option<usize>Optional tokenizer/read offset in bytes.
Trait Implementations§
Source§impl Clone for RenderPrepErrorContext
impl Clone for RenderPrepErrorContext
Source§fn clone(&self) -> RenderPrepErrorContext
fn clone(&self) -> RenderPrepErrorContext
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 moreSource§impl Debug for RenderPrepErrorContext
impl Debug for RenderPrepErrorContext
Source§impl Default for RenderPrepErrorContext
impl Default for RenderPrepErrorContext
Source§fn default() -> RenderPrepErrorContext
fn default() -> RenderPrepErrorContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for RenderPrepErrorContext
impl PartialEq for RenderPrepErrorContext
impl Eq for RenderPrepErrorContext
impl StructuralPartialEq for RenderPrepErrorContext
Auto Trait Implementations§
impl Freeze for RenderPrepErrorContext
impl RefUnwindSafe for RenderPrepErrorContext
impl Send for RenderPrepErrorContext
impl Sync for RenderPrepErrorContext
impl Unpin for RenderPrepErrorContext
impl UnsafeUnpin for RenderPrepErrorContext
impl UnwindSafe for RenderPrepErrorContext
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