Enum rant::IndexError
source ·
[−]pub enum IndexError {
OutOfRange,
CannotIndexType(RantValueType),
CannotSetIndexOnType(RantValueType),
}
Expand description
Error produced by indexing a RantValue.
Variants
OutOfRange
Index was out of range.
CannotIndexType(RantValueType)
Tuple Fields
Values of this type cannot be indexed.
CannotSetIndexOnType(RantValueType)
Tuple Fields
Values of this type cannot have indices written to.
Trait Implementations
The lower-level source of this error, if any. Read more
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
👎 Deprecated since 1.42.0:
use the Display impl or to_string()