pub struct PhaseErrorContext {
pub path: Option<Box<str>>,
pub href: Option<Box<str>>,
pub chapter_index: Option<usize>,
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>,
pub limit: Option<Box<ErrorLimitContext>>,
}Expand description
Rich optional context for typed phase errors.
Fields§
§path: Option<Box<str>>Optional archive path context.
href: Option<Box<str>>Optional resource href context.
chapter_index: Option<usize>Optional chapter index.
source: Option<Box<str>>Optional source context (e.g. inline style location).
selector: Option<Box<str>>Optional selector context.
selector_index: Option<usize>Optional selector index.
declaration: Option<Box<str>>Optional declaration context.
declaration_index: Option<usize>Optional declaration index.
token_offset: Option<usize>Optional tokenizer/read offset in bytes.
limit: Option<Box<ErrorLimitContext>>Optional actual-vs-limit payload.
Trait Implementations§
Source§impl Clone for PhaseErrorContext
impl Clone for PhaseErrorContext
Source§fn clone(&self) -> PhaseErrorContext
fn clone(&self) -> PhaseErrorContext
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 PhaseErrorContext
impl Debug for PhaseErrorContext
Source§impl Default for PhaseErrorContext
impl Default for PhaseErrorContext
Source§fn default() -> PhaseErrorContext
fn default() -> PhaseErrorContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for PhaseErrorContext
impl PartialEq for PhaseErrorContext
impl Eq for PhaseErrorContext
impl StructuralPartialEq for PhaseErrorContext
Auto Trait Implementations§
impl Freeze for PhaseErrorContext
impl RefUnwindSafe for PhaseErrorContext
impl Send for PhaseErrorContext
impl Sync for PhaseErrorContext
impl Unpin for PhaseErrorContext
impl UnsafeUnpin for PhaseErrorContext
impl UnwindSafe for PhaseErrorContext
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