Skip to main content

LOCATION

Struct LOCATION 

Source
pub struct LOCATION;
Expand description

The LOCATION property marker.

Trait Implementations§

Source§

impl IcalPropLens for LOCATION

Available on crate feature parser only.
Source§

type Target<'v> = IcalText<'v>

The decoded value type, borrowing the syntax node for reads. Its Codec impl is what the default decode delegates to.
Source§

type Cursor<'c, 'a> = IcalValueCursor<'c, 'a> where 'a: 'c

The typed edit cursor over a content line.
Source§

fn cursor<'c, 'a>(line: &'c mut IcalLine<'a>) -> IcalValueCursor<'c, 'a>

Wrap a content line in the typed cursor for in-place editing.
Source§

fn decode<'v>(line: &'v IcalLine<'_>, _version: IcalVersion) -> Self::Target<'v>

Project a content line onto the decoded type, consulting the calendar version where the value’s shape is version-specific (GEO, the binary props). The default ignores the version and decodes the value node through the target’s Codec; the version-specific lenses override it.
Source§

impl IcalPropSpec for LOCATION

Source§

const KIND: IcalPropKind = IcalPropKind::Location

The property this spec describes.
Source§

fn cardinality(_version: IcalVersion) -> IcalPropCardinality

How many times the property may appear in its component, in the given version. Most are repeatable; the single-valued ones override this.
Source§

fn allowed_versions() -> &'static [IcalVersion]

The versions in which the property is defined (the existence axis).
Source§

fn allowed_values(_version: IcalVersion) -> &'static [IcalValueKind]

The value-types the property may take, default-first, for the version. Index 0 is the type used when no VALUE is declared.
Source§

fn allowed_params(_version: IcalVersion) -> &'static [IcalParamKind]

The parameters the property may carry, in the given version.
Source§

fn value(version: IcalVersion, declared: Option<IcalValueKind>) -> IcalValueKind

The value-type in force: the declared VALUE kind if any, else the version default, else Text. Liberal: a declared kind outside allowed_values is honoured here.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.