Enum papyri_lang::errors::TypeError
source · pub enum TypeError {
ExpectedWas(Type, Type),
TooManyPositionalArgs(usize, usize),
NotEnoughPositionalArgs(usize, usize),
BlockNotAllowed,
BlockNotAllowedIn(Rc<str>),
TagNotAllowed(Rc<str>),
TagNotAllowedIn(Rc<str>, Rc<str>),
ParagraphBreakNotAllowed,
NoContentAllowed,
ContentAlreadyBound,
SortKeyInvalid(Type),
SortKeyHeterogeneous,
}
Expand description
Represents a type error which occurs during compilation of a Papyri source file.
Variants§
ExpectedWas(Type, Type)
TooManyPositionalArgs(usize, usize)
NotEnoughPositionalArgs(usize, usize)
BlockNotAllowed
BlockNotAllowedIn(Rc<str>)
TagNotAllowed(Rc<str>)
TagNotAllowedIn(Rc<str>, Rc<str>)
ParagraphBreakNotAllowed
NoContentAllowed
ContentAlreadyBound
SortKeyInvalid(Type)
SortKeyHeterogeneous
Trait Implementations§
source§impl From<TypeError> for PapyriError
impl From<TypeError> for PapyriError
source§fn from(e: TypeError) -> PapyriError
fn from(e: TypeError) -> PapyriError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TypeError
impl !Send for TypeError
impl !Sync for TypeError
impl Unpin for TypeError
impl UnwindSafe for TypeError
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