pub enum Error {
Tex(Box<dyn TexError + 'static>),
Propagated(PropagatedError),
}
Expand description
Texlang error type
Note that serializing and deserializing this type results in type erasure. Also the serialization format is private. This is not by design: the minimal amount of work was done to make the type serializable, and future work to make this better is welcome!
Variants§
Tex(Box<dyn TexError + 'static>)
Propagated(PropagatedError)
Implementations§
source§impl Error
impl Error
pub fn new_propagated<S>( vm: &VM<S>, context: PropagationContext, token: Token, error: Box<Error> ) -> Box<Error>
pub fn stack_view(&self) -> (Vec<&PropagatedError>, &dyn TexError)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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§
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