//! # EXDATE lens
//!
//! Reading and editing the `EXDATE` property in place: it decodes as an
//! [`IcalDateTimeList`] and edits through the generic [`IcalValueCursor`].
//!
//! Its RFC contract sits on the marker, [`EXDATE`].
use crate::{
prop::exdate::EXDATE,
tree::{line::IcalLine, prop::lens::IcalPropLens, value::cursor::IcalValueCursor},
value::datetime::IcalDateTimeList,
};
impl IcalPropLens for EXDATE {
type Target<'v> = IcalDateTimeList<'v>;
type Cursor<'c, 'a>
= IcalValueCursor<'c, 'a>
where
'a: 'c;
fn cursor<'c, 'a>(line: &'c mut IcalLine<'a>) -> IcalValueCursor<'c, 'a> {
IcalValueCursor { line }
}
}