pub struct StyleXError {
pub message: String,
pub file: Option<String>,
pub key_path: Option<Vec<String>>,
pub line: Option<usize>,
pub col: Option<usize>,
pub source_location: Option<String>,
}Expand description
Structured error for all user-facing StyleX diagnostics.
Display produces:
[StyleX] key > path > message
--> file:line
[Stack trace]: source_location (whenever source_location is set)Fields§
§message: String§file: Option<String>§key_path: Option<Vec<String>>§line: Option<usize>§col: Option<usize>§source_location: Option<String>Trait Implementations§
Source§impl Clone for StyleXError
impl Clone for StyleXError
Source§fn clone(&self) -> StyleXError
fn clone(&self) -> StyleXError
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 StyleXError
impl Debug for StyleXError
Source§impl Display for StyleXError
impl Display for StyleXError
Source§impl Error for StyleXError
impl Error for StyleXError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for StyleXError
impl RefUnwindSafe for StyleXError
impl Send for StyleXError
impl Sync for StyleXError
impl Unpin for StyleXError
impl UnsafeUnpin for StyleXError
impl UnwindSafe for StyleXError
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