pub struct IcalLeaf<'a>(pub Cow<'a, str>);Available on crate feature
parser only.Expand description
A single raw text piece of a calendar (a name, a parameter value, a line ending): borrowed when parsed, owned when built or edited. Always valid UTF-8, since the parser rejects a non-UTF-8 name or parameter.
Tuple Fields§
§0: Cow<'a, str>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for IcalLeaf<'a>
impl<'a> RefUnwindSafe for IcalLeaf<'a>
impl<'a> Send for IcalLeaf<'a>
impl<'a> Sync for IcalLeaf<'a>
impl<'a> Unpin for IcalLeaf<'a>
impl<'a> UnsafeUnpin for IcalLeaf<'a>
impl<'a> UnwindSafe for IcalLeaf<'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