pub struct VcardText<'a>(pub Cow<'a, str>);Expand description
A single decoded text value (unescaped).
Tuple Fields§
§0: Cow<'a, str>Trait Implementations§
impl<'a> Eq for VcardText<'a>
impl<'a> StructuralPartialEq for VcardText<'a>
Source§impl<'v> VcardCodec<'v> for VcardText<'v>
Available on crate feature parser only.
impl<'v> VcardCodec<'v> for VcardText<'v>
Available on crate feature
parser only.Source§fn decode(node: &'v VcardValueNode<'_>) -> Self
fn decode(node: &'v VcardValueNode<'_>) -> Self
Decode the value from a syntax node.
Source§fn encode(&self, escaper: VcardEscaper) -> VcardValueNode<'static>
fn encode(&self, escaper: VcardEscaper) -> VcardValueNode<'static>
Encode the value into a syntax node for the given escaping mode.
Auto Trait Implementations§
impl<'a> Freeze for VcardText<'a>
impl<'a> RefUnwindSafe for VcardText<'a>
impl<'a> Send for VcardText<'a>
impl<'a> Sync for VcardText<'a>
impl<'a> Unpin for VcardText<'a>
impl<'a> UnsafeUnpin for VcardText<'a>
impl<'a> UnwindSafe for VcardText<'a>
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