pub struct VcardValid<T>(/* private fields */);Expand description
A value that has passed validation.
The only way to mint one is a validating conversion (Vcard::validate or
its TryFrom), so holding a VcardValid<T> is proof the check passed. It
derefs for reads and yields the value with into_inner.
Implementations§
Source§impl<T> VcardValid<T>
impl<T> VcardValid<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Take the validated value back out.
Trait Implementations§
Source§impl<T: Clone> Clone for VcardValid<T>
impl<T: Clone> Clone for VcardValid<T>
Source§fn clone(&self) -> VcardValid<T>
fn clone(&self) -> VcardValid<T>
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<T: Debug> Debug for VcardValid<T>
impl<T: Debug> Debug for VcardValid<T>
Source§impl<T> Deref for VcardValid<T>
impl<T> Deref for VcardValid<T>
impl<T: Eq> Eq for VcardValid<T>
Source§impl From<VcardValid<Vcard<'_>>> for VcardCst<'static>
Available on crate feature parser only.
impl From<VcardValid<Vcard<'_>>> for VcardCst<'static>
Available on crate feature
parser only.Source§fn from(card: VcardValid<Vcard<'_>>) -> Self
fn from(card: VcardValid<Vcard<'_>>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for VcardValid<T>
impl<T: PartialEq> PartialEq for VcardValid<T>
impl<T: PartialEq> StructuralPartialEq for VcardValid<T>
Auto Trait Implementations§
impl<T> Freeze for VcardValid<T>where
T: Freeze,
impl<T> RefUnwindSafe for VcardValid<T>where
T: RefUnwindSafe,
impl<T> Send for VcardValid<T>where
T: Send,
impl<T> Sync for VcardValid<T>where
T: Sync,
impl<T> Unpin for VcardValid<T>where
T: Unpin,
impl<T> UnsafeUnpin for VcardValid<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for VcardValid<T>where
T: UnwindSafe,
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