pub struct IcalRecovery<'a> {
pub calendars: Vec<IcalCst<'a>>,
pub problems: Vec<IcalParseError>,
}Available on crate feature
parser only.Expand description
What a recovering parse read: the calendars it could structure, and every problem it worked around.
The bytes are never lost, whatever the problems: serializing the calendars in order reproduces the input.
Fields§
§calendars: Vec<IcalCst<'a>>Every top-level calendar, in source order. A run of lines outside any
BEGIN becomes a bare, envelope-less calendar of its own.
problems: Vec<IcalParseError>What could not be structured, in the order it was met.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for IcalRecovery<'a>
impl<'a> Clone for IcalRecovery<'a>
Source§fn clone(&self) -> IcalRecovery<'a>
fn clone(&self) -> IcalRecovery<'a>
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<'a> Debug for IcalRecovery<'a>
impl<'a> Debug for IcalRecovery<'a>
Source§impl<'a> Default for IcalRecovery<'a>
impl<'a> Default for IcalRecovery<'a>
Source§fn default() -> IcalRecovery<'a>
fn default() -> IcalRecovery<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for IcalRecovery<'a>
impl<'a> RefUnwindSafe for IcalRecovery<'a>
impl<'a> Send for IcalRecovery<'a>
impl<'a> Sync for IcalRecovery<'a>
impl<'a> Unpin for IcalRecovery<'a>
impl<'a> UnsafeUnpin for IcalRecovery<'a>
impl<'a> UnwindSafe for IcalRecovery<'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