Enum preserves::error::ExpectedKind
source · pub enum ExpectedKind {
}
Expand description
Used in Error::Expected to indicate what was expected.
Variants§
Boolean
Float
Double
SignedIntegerI128
SignedIntegerU128
SignedInteger
String
ByteString
Symbol
Record(Option<usize>)
Expected a record, either of a specific arity (length) or of no specific arity
SimpleRecord(String, Option<usize>)
Expected a record with a symbol label with text String
, perhaps of some specific arity
Sequence
Set
Dictionary
Embedded
SequenceOrSet
Option
UnicodeScalar
Trait Implementations§
source§impl Debug for ExpectedKind
impl Debug for ExpectedKind
source§impl PartialEq for ExpectedKind
impl PartialEq for ExpectedKind
source§fn eq(&self, other: &ExpectedKind) -> bool
fn eq(&self, other: &ExpectedKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExpectedKind
Auto Trait Implementations§
impl Freeze for ExpectedKind
impl RefUnwindSafe for ExpectedKind
impl Send for ExpectedKind
impl Sync for ExpectedKind
impl Unpin for ExpectedKind
impl UnwindSafe for ExpectedKind
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