pub enum Component<'a> {
Any,
NotApplicable,
Value(Cow<'a, str>),
}
Variants§
Implementations§
source§impl<'a> Component<'a>
impl<'a> Component<'a>
pub fn new(val: &'a str) -> Self
pub fn new_string(val: String) -> Self
pub fn parse_wfn_field(value: &'a str) -> Result<Self>
pub fn parse_uri_field(value: &'a str) -> Result<Self>
pub fn to_owned(&self) -> OwnedComponent
pub fn encode_uri(&'a self) -> Cow<'a, str>
pub fn encode_wfn(&'a self) -> Cow<'a, str>
Trait Implementations§
source§impl From<&Component<'_>> for OwnedComponent
impl From<&Component<'_>> for OwnedComponent
source§impl From<Component<'_>> for OwnedComponent
impl From<Component<'_>> for OwnedComponent
impl<'a> Eq for Component<'a>
impl<'a> StructuralPartialEq for Component<'a>
Auto Trait Implementations§
impl<'a> Freeze for Component<'a>
impl<'a> RefUnwindSafe for Component<'a>
impl<'a> Send for Component<'a>
impl<'a> Sync for Component<'a>
impl<'a> Unpin for Component<'a>
impl<'a> UnwindSafe for Component<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)