pub enum FieldAccessError {
UnmatchingType,
Unit,
NotFound,
}
Expand description
If attempt to borrow field was incorrect
Variants§
UnmatchingType
Requested type doesn’t actually match that of the field
Unit
If there were an attempt to access field in unit type
NotFound
If accessing field that is not present in type
Trait Implementations§
Source§impl Debug for FieldAccessError
impl Debug for FieldAccessError
Source§impl Display for FieldAccessError
impl Display for FieldAccessError
Source§impl Error for FieldAccessError
impl Error for FieldAccessError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for FieldAccessError
impl RefUnwindSafe for FieldAccessError
impl Send for FieldAccessError
impl Sync for FieldAccessError
impl Unpin for FieldAccessError
impl UnwindSafe for FieldAccessError
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