pub enum TryFromOutcome {
Converted,
Unsupported,
Failed(Cow<'static, str>),
}Expand description
Outcome of a try_from vtable operation.
This enum encodes both the result and whether the source value was consumed, which is critical for correct memory management.
Variants§
Converted
Conversion succeeded. The source value was consumed.
Unsupported
The source type is not supported by this converter. The source value was NOT consumed - caller retains ownership.
Failed(Cow<'static, str>)
Conversion failed after consuming the source. The source value WAS consumed - caller must not drop it.
Trait Implementations§
Source§impl Clone for TryFromOutcome
impl Clone for TryFromOutcome
Source§fn clone(&self) -> TryFromOutcome
fn clone(&self) -> TryFromOutcome
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 TryFromOutcome
impl Debug for TryFromOutcome
Source§impl PartialEq for TryFromOutcome
impl PartialEq for TryFromOutcome
impl Eq for TryFromOutcome
impl StructuralPartialEq for TryFromOutcome
Auto Trait Implementations§
impl Freeze for TryFromOutcome
impl RefUnwindSafe for TryFromOutcome
impl Send for TryFromOutcome
impl Sync for TryFromOutcome
impl Unpin for TryFromOutcome
impl UnwindSafe for TryFromOutcome
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