pub struct Fragment(/* private fields */);
Expand description
IRI fragment.
Implementations§
source§impl Fragment
impl Fragment
sourcepub fn new<T>(input: &T) -> Result<&Fragment, InvalidFragment<&T>>
pub fn new<T>(input: &T) -> Result<&Fragment, InvalidFragment<&T>>
Creates a new IRI fragment by parsing the input
value
sourcepub const unsafe fn new_unchecked(input: &str) -> &Fragment
pub const unsafe fn new_unchecked(input: &str) -> &Fragment
Creates a new IRI fragment from the input
value without validation.
§Safety
The input data must be a valid IRI fragment.
Methods from Deref<Target = PctStr>§
Trait Implementations§
source§impl AsRef<Fragment> for FragmentBuf
impl AsRef<Fragment> for FragmentBuf
source§impl Borrow<Fragment> for FragmentBuf
impl Borrow<Fragment> for FragmentBuf
source§impl<'a, 'de> Deserialize<'de> for &'a Fragmentwhere
'de: 'a,
impl<'a, 'de> Deserialize<'de> for &'a Fragmentwhere
'de: 'a,
source§fn deserialize<D>(
deserializer: D,
) -> Result<&'a Fragment, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<&'a Fragment, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq<&'a Fragment> for FragmentBuf
impl<'a> PartialEq<&'a Fragment> for FragmentBuf
source§impl<'a> PartialEq<&'a str> for Fragment
impl<'a> PartialEq<&'a str> for Fragment
source§impl PartialEq<Fragment> for FragmentBuf
impl PartialEq<Fragment> for FragmentBuf
source§impl PartialEq for Fragment
impl PartialEq for Fragment
source§impl<'a> PartialOrd<&'a Fragment> for FragmentBuf
impl<'a> PartialOrd<&'a Fragment> for FragmentBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Fragment> for FragmentBuf
impl PartialOrd<Fragment> for FragmentBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd for Fragment
impl PartialOrd for Fragment
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Fragment
impl Serialize for Fragment
source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl ToOwned for Fragment
impl ToOwned for Fragment
§type Owned = FragmentBuf
type Owned = FragmentBuf
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> FragmentBuf
fn to_owned(&self) -> FragmentBuf
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more