Struct WithPart
struct WithPart<T: ?Sized> { ... }
A Writeable that writes out the given part.
Examples
use WithPart;
use assert_writeable_parts_eq;
use Part;
// Simple usage:
const PART: Part = Part ;
assert_writeable_parts_eq!;
// Can be nested:
const PART2: Part = Part ;
assert_writeable_parts_eq!;
Fields
part: Partwriteable: T
Implementations
impl<T> Any for WithPart<T>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for WithPart<T>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for WithPart<T>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> Freeze for WithPart<T>
impl<T> From for WithPart<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> RefUnwindSafe for WithPart<T>
impl<T> Send for WithPart<T>
impl<T> Sync for WithPart<T>
impl<T> ToString for WithPart<T>
fn to_string(self: &Self) -> String
impl<T> Unpin for WithPart<T>
impl<T> UnsafeUnpin for WithPart<T>
impl<T> UnwindSafe for WithPart<T>
impl<T, U> Into for WithPart<T>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for WithPart<T>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for WithPart<T>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T: $crate::fmt::Debug + ?Sized> Debug for WithPart<T>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<T: Writeable + ?Sized> Display for WithPart<T>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<T: Writeable + ?Sized> Writeable for WithPart<T>
fn write_to<W: fmt::Write + ?Sized>(self: &Self, sink: &mut W) -> Resultfn write_to_parts<W: PartsWrite + ?Sized>(self: &Self, sink: &mut W) -> Resultfn writeable_length_hint(self: &Self) -> LengthHintfn write_to_string(self: &Self) -> Cow<'_, str>