pub enum TeXError<ET: EngineTypes> {
Show 17 variants
InvalidCharacter(InvalidCharacter<ET::Char>),
WrongDefinition(String),
FileEndedWhileScanningUseOf(String),
Undefined(String),
TooManyCloseBraces,
EmergencyStop,
MissingBegingroup,
MissingEndgroup,
MissingDollar,
MissingNumber,
MissingUnit,
ParagraphEnded(String),
MissingKeyword(&'static [&'static str]),
IncompleteConditional {
name: PrimitiveIdentifier,
line_no: usize,
},
NotAllowedInMode {
name: PrimitiveIdentifier,
mode: TeXMode,
},
General(String),
Fmt(Error),
}Variants§
InvalidCharacter(InvalidCharacter<ET::Char>)
WrongDefinition(String)
FileEndedWhileScanningUseOf(String)
Undefined(String)
TooManyCloseBraces
EmergencyStop
MissingBegingroup
MissingEndgroup
MissingDollar
MissingNumber
MissingUnit
ParagraphEnded(String)
MissingKeyword(&'static [&'static str])
IncompleteConditional
NotAllowedInMode
General(String)
Fmt(Error)
Implementations§
Source§impl<ET: EngineTypes> TeXError<ET>
impl<ET: EngineTypes> TeXError<ET>
Sourcepub fn incomplete_conditional<M: Mouth<ET>>(
aux: &EngineAux<ET>,
state: &ET::State,
mouth: &mut M,
name: PrimitiveIdentifier,
) -> TeXResult<(), ET>
pub fn incomplete_conditional<M: Mouth<ET>>( aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, name: PrimitiveIdentifier, ) -> TeXResult<(), ET>
§Errors
because that’s what it’s supposed to do
Sourcepub fn wrong_definition<M: Mouth<ET>>(
aux: &EngineAux<ET>,
state: &ET::State,
mouth: &mut M,
found: &ET::Token,
expected: &ET::Token,
in_macro: &ET::Token,
) -> TeXResult<(), ET>
pub fn wrong_definition<M: Mouth<ET>>( aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, found: &ET::Token, expected: &ET::Token, in_macro: &ET::Token, ) -> TeXResult<(), ET>
§Errors
because that’s what it’s supposed to do
Sourcepub fn file_end_while_use<M: Mouth<ET>>(
aux: &EngineAux<ET>,
state: &ET::State,
mouth: &mut M,
in_macro: &ET::Token,
) -> TeXResult<(), ET>
pub fn file_end_while_use<M: Mouth<ET>>( aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, in_macro: &ET::Token, ) -> TeXResult<(), ET>
§Errors
because that’s what it’s supposed to do
Sourcepub fn undefined<M: Mouth<ET>>(
aux: &EngineAux<ET>,
state: &ET::State,
mouth: &mut M,
token: &ET::Token,
) -> TeXResult<(), ET>
pub fn undefined<M: Mouth<ET>>( aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, token: &ET::Token, ) -> TeXResult<(), ET>
§Errors
because that’s what it’s supposed to do
Sourcepub fn not_allowed_in_mode<M: Mouth<ET>>(
aux: &EngineAux<ET>,
state: &ET::State,
mouth: &mut M,
name: PrimitiveIdentifier,
mode: TeXMode,
) -> TeXResult<(), ET>
pub fn not_allowed_in_mode<M: Mouth<ET>>( aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, name: PrimitiveIdentifier, mode: TeXMode, ) -> TeXResult<(), ET>
§Errors
because that’s what it’s supposed to do
Sourcepub fn missing_begingroup<M: Mouth<ET>>(
aux: &EngineAux<ET>,
state: &ET::State,
mouth: &mut M,
) -> TeXResult<(), ET>
pub fn missing_begingroup<M: Mouth<ET>>( aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, ) -> TeXResult<(), ET>
§Errors
because that’s what it’s supposed to do
Sourcepub fn missing_endgroup<M: Mouth<ET>>(
aux: &EngineAux<ET>,
state: &ET::State,
mouth: &mut M,
) -> TeXResult<(), ET>
pub fn missing_endgroup<M: Mouth<ET>>( aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, ) -> TeXResult<(), ET>
§Errors
because that’s what it’s supposed to do
Sourcepub fn missing_number<M: Mouth<ET>>(
aux: &EngineAux<ET>,
state: &ET::State,
mouth: &mut M,
) -> TeXResult<(), ET>
pub fn missing_number<M: Mouth<ET>>( aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, ) -> TeXResult<(), ET>
§Errors
because that’s what it’s supposed to do
Sourcepub fn missing_unit<M: Mouth<ET>>(
aux: &EngineAux<ET>,
state: &ET::State,
mouth: &mut M,
) -> TeXResult<(), ET>
pub fn missing_unit<M: Mouth<ET>>( aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, ) -> TeXResult<(), ET>
§Errors
because that’s what it’s supposed to do
Sourcepub fn missing_keyword<M: Mouth<ET>>(
aux: &EngineAux<ET>,
state: &ET::State,
mouth: &mut M,
kws: &'static [&'static str],
) -> TeXResult<(), ET>
pub fn missing_keyword<M: Mouth<ET>>( aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, kws: &'static [&'static str], ) -> TeXResult<(), ET>
§Errors
because that’s what it’s supposed to do
Trait Implementations§
Source§impl<ET: EngineTypes> Display for TeXError<ET>
impl<ET: EngineTypes> Display for TeXError<ET>
Source§impl<ET: EngineTypes> Error for TeXError<ET>
impl<ET: EngineTypes> Error for TeXError<ET>
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()
Source§impl<ET: EngineTypes> From<GulletError<<ET as EngineTypes>::Char>> for TeXError<ET>
impl<ET: EngineTypes> From<GulletError<<ET as EngineTypes>::Char>> for TeXError<ET>
Source§fn from(e: GulletError<ET::Char>) -> Self
fn from(e: GulletError<ET::Char>) -> Self
Converts to this type from the input type.
Source§impl<ET: EngineTypes> From<InvalidCharacter<<ET as EngineTypes>::Char>> for TeXError<ET>
impl<ET: EngineTypes> From<InvalidCharacter<<ET as EngineTypes>::Char>> for TeXError<ET>
Source§fn from(source: InvalidCharacter<ET::Char>) -> Self
fn from(source: InvalidCharacter<ET::Char>) -> Self
Converts to this type from the input type.
Source§impl<ET: EngineTypes> From<TooManyCloseBraces> for TeXError<ET>
impl<ET: EngineTypes> From<TooManyCloseBraces> for TeXError<ET>
Source§fn from(_: TooManyCloseBraces) -> Self
fn from(_: TooManyCloseBraces) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<ET> Freeze for TeXError<ET>
impl<ET> RefUnwindSafe for TeXError<ET>
impl<ET> Send for TeXError<ET>
impl<ET> Sync for TeXError<ET>
impl<ET> Unpin for TeXError<ET>
impl<ET> UnsafeUnpin for TeXError<ET>
impl<ET> UnwindSafe for TeXError<ET>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.