pub struct BiesString<'a>(/* private fields */);
Implementations§
Trait Implementations§
Source§impl<'a> Clone for BiesString<'a>
impl<'a> Clone for BiesString<'a>
Source§fn clone(&self) -> BiesString<'a>
fn clone(&self) -> BiesString<'a>
Returns a copy 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 BiesString<'_>
impl Debug for BiesString<'_>
Source§impl Display for BiesString<'_>
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for BiesString<'_>
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
Source§impl<'a> From<&'a Breakpoints> for BiesString<'a>
impl<'a> From<&'a Breakpoints> for BiesString<'a>
Source§fn from(other: &'a Breakpoints) -> Self
fn from(other: &'a Breakpoints) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for BiesString<'a>
impl<'a> PartialEq for BiesString<'a>
Source§impl Writeable for BiesString<'_>
impl Writeable for BiesString<'_>
Source§fn write_to<W: Write + ?Sized>(&self, sink: &mut W) -> Result
fn write_to<W: Write + ?Sized>(&self, sink: &mut W) -> Result
Writes a string to the given sink. Errors from the sink are bubbled up.
The default implementation delegates to
write_to_parts
, and discards any
Part
annotations.Source§fn writeable_length_hint(&self) -> LengthHint
fn writeable_length_hint(&self) -> LengthHint
Returns a hint for the number of UTF-8 bytes that will be written to the sink. Read more
§fn write_to_parts<S>(&self, sink: &mut S) -> Result<(), Error>where
S: PartsWrite + ?Sized,
fn write_to_parts<S>(&self, sink: &mut S) -> Result<(), Error>where
S: PartsWrite + ?Sized,
Write bytes and
Part
annotations to the given sink. Errors from the
sink are bubbled up. The default implementation delegates to write_to
,
and doesn’t produce any Part
annotations.§fn write_to_string(&self) -> Cow<'_, str>
fn write_to_string(&self) -> Cow<'_, str>
Creates a new
String
with the data from this Writeable
. Like ToString
,
but smaller and faster. Read moreimpl<'a> StructuralPartialEq for BiesString<'a>
Auto Trait Implementations§
impl<'a> Freeze for BiesString<'a>
impl<'a> RefUnwindSafe for BiesString<'a>
impl<'a> Send for BiesString<'a>
impl<'a> Sync for BiesString<'a>
impl<'a> Unpin for BiesString<'a>
impl<'a> UnwindSafe for BiesString<'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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more