pub struct TelUriParts<'a> { /* private fields */ }Expand description
Borrowed syntax parts of an RFC 3966 tel: URI.
The view is deliberately byte-oriented and lossless. It neither removes visual separators
nor interprets parameters such as phone-context; those are policy decisions for the caller.
Implementations§
Source§impl<'a> TelUriParts<'a>
impl<'a> TelUriParts<'a>
Sourcepub fn subscriber(&self) -> &'a [u8] ⓘ
pub fn subscriber(&self) -> &'a [u8] ⓘ
The exact telephone-subscriber bytes before the first ;.
Sourcepub fn parameters(&self) -> Option<&'a [u8]>
pub fn parameters(&self) -> Option<&'a [u8]>
The exact parameter tail after the first ;, without that delimiter.
None means there was no delimiter. Some(b"") retains a trailing delimiter from an
opaque URI body, even though an empty parameter is not valid RFC 3966 syntax.
Sourcepub fn parsed_parameters(&self) -> TelParameters<'a> ⓘ
pub fn parsed_parameters(&self) -> TelParameters<'a> ⓘ
Iterate the exact generic RFC 3966 parameters with structural validation.
Names compare case-insensitively through TelParameter::name_eq. Order, duplicates,
percent escapes and original spelling are retained; parameter-specific policy is not
applied. A malformed item is yielded once and fuses the iterator.
Trait Implementations§
Source§impl<'a> Clone for TelUriParts<'a>
impl<'a> Clone for TelUriParts<'a>
Source§fn clone(&self) -> TelUriParts<'a>
fn clone(&self) -> TelUriParts<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for TelUriParts<'a>
impl<'a> Debug for TelUriParts<'a>
Source§impl<'a> PartialEq for TelUriParts<'a>
impl<'a> PartialEq for TelUriParts<'a>
Source§fn eq(&self, other: &TelUriParts<'a>) -> bool
fn eq(&self, other: &TelUriParts<'a>) -> bool
self and other values to be equal, and is used by ==.