pub enum Escaper {
V1_0,
Modern,
}Available on crate feature
parser only.Expand description
The value-escaping rules to apply, selected by the calendar version.
Variants§
V1_0
vCalendar 1.0 (versit): only ; is escaped (\;); a backslash before
anything else is literal.
Modern
iCalendar 2.0 (RFC 5545 3.3.11): \\, \,, \; and \n.
Implementations§
Source§impl Escaper
impl Escaper
Sourcepub fn for_version(version: IcalVersion) -> Self
pub fn for_version(version: IcalVersion) -> Self
The escaping rules a calendar of version uses.
Sourcepub fn for_version_str(version: &str) -> Self
pub fn for_version_str(version: &str) -> Self
The escaping rules for a raw VERSION wire string (e.g. "1.0").
Trait Implementations§
impl Copy for Escaper
impl Eq for Escaper
impl StructuralPartialEq for Escaper
Auto Trait Implementations§
impl Freeze for Escaper
impl RefUnwindSafe for Escaper
impl Send for Escaper
impl Sync for Escaper
impl Unpin for Escaper
impl UnsafeUnpin for Escaper
impl UnwindSafe for Escaper
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