pub struct RawByteStr(/* private fields */);
Implementations§
Source§impl RawByteStr
impl RawByteStr
Sourcepub fn from_slice(value: &[u8]) -> Self
pub fn from_slice(value: &[u8]) -> Self
Create a new RawByteStr
instance from the passed byte slice.
Trait Implementations§
Source§impl Debug for RawByteStr
impl Debug for RawByteStr
Source§impl Display for RawByteStr
impl Display for RawByteStr
Source§impl From<&'static [u8]> for RawByteStr
impl From<&'static [u8]> for RawByteStr
Source§impl From<&'static str> for RawByteStr
impl From<&'static str> for RawByteStr
Auto Trait Implementations§
impl Freeze for RawByteStr
impl RefUnwindSafe for RawByteStr
impl Send for RawByteStr
impl Sync for RawByteStr
impl Unpin for RawByteStr
impl UnwindSafe for RawByteStr
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<X> SerializeBytes for Xwhere
X: ToString,
impl<X> SerializeBytes for Xwhere
X: ToString,
Source§impl<X> SerializeSync for Xwhere
X: WithSerializer,
impl<X> SerializeSync for Xwhere
X: WithSerializer,
Source§impl<X> WithBoxedSerializer for Xwhere
X: WithSerializer,
impl<X> WithBoxedSerializer for Xwhere
X: WithSerializer,
Source§impl<X> WithSerializer for Xwhere
X: SerializeBytes + Debug,
impl<X> WithSerializer for Xwhere
X: SerializeBytes + Debug,
Source§type Serializer<'x> = ContentSerializer<'x, X>
where
X: 'x
type Serializer<'x> = ContentSerializer<'x, X> where X: 'x
The serializer to use for this type.
Source§fn serializer<'ser>(
&'ser self,
name: Option<&'ser str>,
is_root: bool,
) -> Result<<X as WithSerializer>::Serializer<'ser>, Error>
fn serializer<'ser>( &'ser self, name: Option<&'ser str>, is_root: bool, ) -> Result<<X as WithSerializer>::Serializer<'ser>, Error>
Initializes a new serializer from the passed
value
. Read more