pub struct MediaTypeSegment(pub FosterByteString);
Expand description
MediaType segment.
Tuple Fields§
§0: FosterByteString
Implementations§
Source§impl MediaTypeSegment
impl MediaTypeSegment
Sourcepub const fn new_owned(string: Box<ByteString>) -> Self
pub const fn new_owned(string: Box<ByteString>) -> Self
Constructor.
Sourcepub const fn new_fostered(string: &'static str) -> Self
pub const fn new_fostered(string: &'static str) -> Self
Constructor.
Trait Implementations§
Source§impl AsRef<str> for MediaTypeSegment
impl AsRef<str> for MediaTypeSegment
Source§impl CacheWeight for MediaTypeSegment
impl CacheWeight for MediaTypeSegment
Source§fn cache_weight(&self) -> usize
fn cache_weight(&self) -> usize
Cache weight as a byte count. Read more
Source§impl Clone for MediaTypeSegment
impl Clone for MediaTypeSegment
Source§fn clone(&self) -> MediaTypeSegment
fn clone(&self) -> MediaTypeSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MediaTypeSegment
impl Debug for MediaTypeSegment
Source§impl Display for MediaTypeSegment
impl Display for MediaTypeSegment
Source§impl From<&str> for MediaTypeSegment
impl From<&str> for MediaTypeSegment
Source§impl From<ByteString> for MediaTypeSegment
impl From<ByteString> for MediaTypeSegment
Source§fn from(string: ByteString) -> Self
fn from(string: ByteString) -> Self
Converts to this type from the input type.
Source§impl From<String> for MediaTypeSegment
impl From<String> for MediaTypeSegment
Source§impl FromStr for MediaTypeSegment
impl FromStr for MediaTypeSegment
Source§impl Hash for MediaTypeSegment
impl Hash for MediaTypeSegment
Source§impl IntoOwned for MediaTypeSegment
impl IntoOwned for MediaTypeSegment
Source§fn into_owned(self) -> Self
fn into_owned(self) -> Self
Into owned.
Source§impl Ord for MediaTypeSegment
impl Ord for MediaTypeSegment
Source§impl PartialEq for MediaTypeSegment
impl PartialEq for MediaTypeSegment
Source§impl PartialOrd for MediaTypeSegment
impl PartialOrd for MediaTypeSegment
impl Eq for MediaTypeSegment
Auto Trait Implementations§
impl Freeze for MediaTypeSegment
impl RefUnwindSafe for MediaTypeSegment
impl Send for MediaTypeSegment
impl Sync for MediaTypeSegment
impl Unpin for MediaTypeSegment
impl UnwindSafe for MediaTypeSegment
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.