pub struct LogicalLine<'a> {
pub name: String,
pub params: Vec<(String, String)>,
pub value: &'a str,
}Expand description
Tokenized property line.
Pub-promoted from pub(crate) to support out-of-tree consumers like
icslint that need to walk the source at the logical-line level
without committing to the typed VCalendar view.
Fields§
§name: StringProperty name, UPPERCASE-normalized.
params: Vec<(String, String)>(KEY, value) pairs. Keys UPPERCASE; values keep their original
casing with surrounding " stripped if present.
value: &'a strText after the first :. Escapes intact; multi-byte UTF-8 intact.
Implementations§
Source§impl<'a> LogicalLine<'a>
impl<'a> LogicalLine<'a>
Sourcepub fn to_raw_property(&self, source_index: u32) -> RawProperty
pub fn to_raw_property(&self, source_index: u32) -> RawProperty
Build a RawProperty for storage in VEvent.unknown or a vendor
bundle’s unrecognized slot. Allocates because RawProperty
owns its value.
Trait Implementations§
Source§impl<'a> Clone for LogicalLine<'a>
impl<'a> Clone for LogicalLine<'a>
Source§fn clone(&self) -> LogicalLine<'a>
fn clone(&self) -> LogicalLine<'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 LogicalLine<'a>
impl<'a> Debug for LogicalLine<'a>
Source§impl<'a> PartialEq for LogicalLine<'a>
impl<'a> PartialEq for LogicalLine<'a>
Source§fn eq(&self, other: &LogicalLine<'a>) -> bool
fn eq(&self, other: &LogicalLine<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for LogicalLine<'a>
impl<'a> StructuralPartialEq for LogicalLine<'a>
Auto Trait Implementations§
impl<'a> Freeze for LogicalLine<'a>
impl<'a> RefUnwindSafe for LogicalLine<'a>
impl<'a> Send for LogicalLine<'a>
impl<'a> Sync for LogicalLine<'a>
impl<'a> Unpin for LogicalLine<'a>
impl<'a> UnsafeUnpin for LogicalLine<'a>
impl<'a> UnwindSafe for LogicalLine<'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