pub enum TclError {
DeError(DeError),
TclInitError(TclInitError),
NullInterp(NullInterp),
MismatchedObjType(MismatchedObjType),
MoveBorrowedValue(MoveBorrowedValue),
MoveSharedObj(MoveSharedObj),
NullDataPtr(NullDataPtr),
NotList(NotList),
NotDict(NotDict),
NotSeq(NotSeq),
MutateSharedDict(MutateSharedDict),
InterpError(InterpError),
}
Expand description
The crate error type for users who do not want to use checked exceptions( #[cex]
).
Variants§
DeError(DeError)
TclInitError(TclInitError)
NullInterp(NullInterp)
MismatchedObjType(MismatchedObjType)
MoveBorrowedValue(MoveBorrowedValue)
NullDataPtr(NullDataPtr)
NotList(NotList)
NotDict(NotDict)
NotSeq(NotSeq)
InterpError(InterpError)
Trait Implementations§
source§impl Error for TclError
impl Error for TclError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<InterpError> for TclError
impl From<InterpError> for TclError
source§fn from(e: InterpError) -> Self
fn from(e: InterpError) -> Self
Converts to this type from the input type.
source§impl From<MismatchedObjType> for TclError
impl From<MismatchedObjType> for TclError
source§fn from(e: MismatchedObjType) -> Self
fn from(e: MismatchedObjType) -> Self
Converts to this type from the input type.
source§impl From<MoveBorrowedValue> for TclError
impl From<MoveBorrowedValue> for TclError
source§fn from(e: MoveBorrowedValue) -> Self
fn from(e: MoveBorrowedValue) -> Self
Converts to this type from the input type.
source§fn from(e: MoveSharedObj) -> Self
fn from(e: MoveSharedObj) -> Self
Converts to this type from the input type.
source§fn from(e: MutateSharedDict) -> Self
fn from(e: MutateSharedDict) -> Self
Converts to this type from the input type.
source§impl From<NullDataPtr> for TclError
impl From<NullDataPtr> for TclError
source§fn from(e: NullDataPtr) -> Self
fn from(e: NullDataPtr) -> Self
Converts to this type from the input type.
source§impl From<NullInterp> for TclError
impl From<NullInterp> for TclError
source§fn from(e: NullInterp) -> Self
fn from(e: NullInterp) -> Self
Converts to this type from the input type.
source§impl From<TclInitError> for TclError
impl From<TclInitError> for TclError
source§fn from(e: TclInitError) -> Self
fn from(e: TclInitError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TclError
impl !Send for TclError
impl !Sync for TclError
impl Unpin for TclError
impl UnwindSafe for TclError
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