pub struct IcalTime<'a>(pub Cow<'a, str>);Expand description
A decoded time value (HHMMSS, optional Z), kept as its raw text.
Tuple Fields§
§0: Cow<'a, str>Trait Implementations§
Source§impl<'v> Codec<'v> for IcalTime<'v>
Available on crate feature parser only.
impl<'v> Codec<'v> for IcalTime<'v>
Available on crate feature
parser only.Source§fn decode(node: &'v IcalValueNode<'_>) -> Self
fn decode(node: &'v IcalValueNode<'_>) -> Self
Decode the value from a syntax node.
Source§fn encode(&self, escaper: Escaper) -> IcalValueNode<'static>
fn encode(&self, escaper: Escaper) -> IcalValueNode<'static>
Encode the value into a syntax node for the given escaping mode.
impl<'a> Eq for IcalTime<'a>
impl<'a> StructuralPartialEq for IcalTime<'a>
Auto Trait Implementations§
impl<'a> Freeze for IcalTime<'a>
impl<'a> RefUnwindSafe for IcalTime<'a>
impl<'a> Send for IcalTime<'a>
impl<'a> Sync for IcalTime<'a>
impl<'a> Unpin for IcalTime<'a>
impl<'a> UnsafeUnpin for IcalTime<'a>
impl<'a> UnwindSafe for IcalTime<'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