//! # ATTACH lens
//!
//! Reading and editing the `ATTACH` property in place: it decodes as an
//! [`IcalUri`] and edits through the generic [`IcalValueCursor`].
//!
//! Its RFC contract sits on the marker, [`ATTACH`].
use crate::{
prop::attach::ATTACH,
tree::{line::IcalLine, prop::lens::IcalPropLens, value::cursor::IcalValueCursor},
value::uri::IcalUri,
};
impl IcalPropLens for ATTACH {
type Target<'v> = IcalUri<'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 }
}
}