pub struct PostureMismatchError {
pub host_kind: &'static str,
pub host_name: String,
pub declared_posture: &'static str,
pub member_kind: &'static str,
pub member_name: String,
pub member_type: String,
pub member_posture: &'static str,
}Expand description
Payload for ErrorKind::PostureMismatch (ADR-0080).
Reports that the declared posture (copy / unmarked / linear) of a
type is inconsistent with one of its members’ posture. host_kind is
"struct" or "enum"; host_name is the type name (or
"<anonymous>" for an anonymous literal). member_kind is "field"
for structs or "variant"/"variant field" for enums. member_name
names the offending member; member_type names its type;
member_posture is the offending posture ("affine" / "linear").
Fields§
§host_kind: &'static str§host_name: String§declared_posture: &'static str§member_kind: &'static str§member_name: String§member_type: String§member_posture: &'static strTrait Implementations§
Source§impl Clone for PostureMismatchError
impl Clone for PostureMismatchError
Source§fn clone(&self) -> PostureMismatchError
fn clone(&self) -> PostureMismatchError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostureMismatchError
impl Debug for PostureMismatchError
Source§impl PartialEq for PostureMismatchError
impl PartialEq for PostureMismatchError
impl Eq for PostureMismatchError
impl StructuralPartialEq for PostureMismatchError
Auto Trait Implementations§
impl Freeze for PostureMismatchError
impl RefUnwindSafe for PostureMismatchError
impl Send for PostureMismatchError
impl Sync for PostureMismatchError
impl Unpin for PostureMismatchError
impl UnsafeUnpin for PostureMismatchError
impl UnwindSafe for PostureMismatchError
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