pub enum UnknownPolicy {
Reject,
PreserveDataOnly,
}Expand description
Policy for preserving a part kind that is not in the standard normative book.
Variants§
Reject
Reject the part unless the kind is registered.
PreserveDataOnly
Preserve the part as data only.
Trait Implementations§
Source§impl Clone for UnknownPolicy
impl Clone for UnknownPolicy
Source§fn clone(&self) -> UnknownPolicy
fn clone(&self) -> UnknownPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnknownPolicy
impl Debug for UnknownPolicy
impl Eq for UnknownPolicy
Source§impl PartialEq for UnknownPolicy
impl PartialEq for UnknownPolicy
impl StructuralPartialEq for UnknownPolicy
Auto Trait Implementations§
impl Freeze for UnknownPolicy
impl RefUnwindSafe for UnknownPolicy
impl Send for UnknownPolicy
impl Sync for UnknownPolicy
impl Unpin for UnknownPolicy
impl UnsafeUnpin for UnknownPolicy
impl UnwindSafe for UnknownPolicy
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