pub enum TelError {
ParseError {
errors: Vec<TelParseError>,
},
ConversionError {
message: String,
from: String,
to: String,
},
NotIndexable {
message: String,
subject: String,
},
NoAttribute {
message: String,
subject: String,
attribute: String,
},
InvalidSelector {
message: String,
},
UnsupportedOperation {
operation: String,
message: String,
},
FunctionNotFound(String),
IndexOutOfBounds {
index: usize,
max: usize,
},
InvalidIndex {
subject: String,
message: String,
},
}Variants§
ParseError
Fields
§
errors: Vec<TelParseError>ConversionError
NotIndexable
NoAttribute
InvalidSelector
UnsupportedOperation
FunctionNotFound(String)
IndexOutOfBounds
InvalidIndex
Implementations§
source§impl TelError
impl TelError
pub fn new_binary_unsupported( op: BinaryOpType, a: Description, b: Description ) -> TelError
pub fn new_unary_unsupported(op: UnaryOpType, a: Description) -> TelError
pub fn get_code(&self) -> u32
Trait Implementations§
source§impl<'de> Deserialize<'de> for TelError
impl<'de> Deserialize<'de> for TelError
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
source§impl PartialEq for TelError
impl PartialEq for TelError
impl StructuralPartialEq for TelError
Auto Trait Implementations§
impl RefUnwindSafe for TelError
impl Send for TelError
impl Sync for TelError
impl Unpin for TelError
impl UnwindSafe for TelError
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