Struct liquid_compiler::value::error::Error
source · pub struct Error { /* private fields */ }Expand description
Compiler error
Implementations
sourceimpl Error
impl Error
sourcepub fn with_msg<S>(msg: S) -> Errorwhere
S: Into<Cow<'static, str>>,
pub fn with_msg<S>(msg: S) -> Errorwhere
S: Into<Cow<'static, str>>,
Create a new compiler error with the given message
sourcepub fn trace<T>(self, trace: T) -> Errorwhere
T: Into<Cow<'static, str>>,
pub fn trace<T>(self, trace: T) -> Errorwhere
T: Into<Cow<'static, str>>,
Add a new call to the user-visible backtrace
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more