Skip to main content

Uri

Struct Uri 

Source
pub struct Uri(/* private fields */);
Expand description

A URI (RFC 3986 §3.3.13).

This is a permissive wrapper around str used for URI values in iCalendar content lines. No scheme validation is performed — use calendar_types::string::Uri for stricter parsing.

Implementations§

Source§

impl Uri

Source

pub const fn as_str(&self) -> &str

Trait Implementations§

Source§

impl Clone for Box<Uri>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Uri

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for Uri

Source§

impl From<&Uri> for Box<Uri>

Source§

fn from(value: &Uri) -> Self

Converts to this type from the input type.
Source§

impl From<&mut Uri> for Box<Uri>

Source§

fn from(value: &mut Uri) -> Self

Converts to this type from the input type.
Source§

impl Hash for Uri

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for Uri

Source§

fn eq(&self, other: &Uri) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Uri

Source§

impl WriteIcal for Box<Uri>

Source§

fn write_ical(&self, w: &mut dyn Write) -> Result

Writes this value to the given writer in iCalendar wire format.
Source§

fn to_ical_string(&self) -> String

Convenience method that serializes to a String.

Auto Trait Implementations§

§

impl !Sized for Uri

§

impl Freeze for Uri

§

impl RefUnwindSafe for Uri

§

impl Send for Uri

§

impl Sync for Uri

§

impl Unpin for Uri

§

impl UnsafeUnpin for Uri

§

impl UnwindSafe for Uri

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