Skip to main content

Writable

Trait Writable 

Source
pub trait Writable<C: Context> {
    // Required method
    fn write_to<T: ?Sized + Writer<C>>(
        &self,
        writer: &mut T,
    ) -> Result<(), C::Error>;

    // Provided methods
    fn write_to_buffer(&self, buffer: &mut [u8]) -> Result<(), C::Error>
       where Self: DefaultContext<Context = C>,
             C: Default { ... }
    fn write_to_vec(&self) -> Result<Vec<u8>, C::Error>
       where Self: DefaultContext<Context = C>,
             C: Default { ... }
    fn write_to_stream<S: Write>(&self, stream: S) -> Result<(), C::Error>
       where Self: DefaultContext<Context = C>,
             C: Default { ... }
    fn write_to_file(&self, path: impl AsRef<Path>) -> Result<(), C::Error>
       where Self: DefaultContext<Context = C>,
             C: Default { ... }
    fn write_to_buffer_with_ctx(
        &self,
        context: C,
        buffer: &mut [u8],
    ) -> Result<(), C::Error> { ... }
    fn write_to_buffer_with_ctx_mut(
        &self,
        context: &mut C,
        buffer: &mut [u8],
    ) -> Result<(), C::Error> { ... }
    fn write_to_vec_with_ctx(&self, context: C) -> Result<Vec<u8>, C::Error> { ... }
    fn write_to_vec_with_ctx_mut(
        &self,
        context: &mut C,
    ) -> Result<Vec<u8>, C::Error> { ... }
    fn write_to_stream_with_ctx<S: Write>(
        &self,
        context: C,
        stream: S,
    ) -> Result<(), C::Error> { ... }
    fn write_to_file_with_ctx(
        &self,
        context: C,
        path: impl AsRef<Path>,
    ) -> Result<(), C::Error> { ... }
    fn bytes_needed(&self) -> Result<usize, C::Error> { ... }
}

Required Methods§

Source

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Provided Methods§

Source

fn write_to_buffer(&self, buffer: &mut [u8]) -> Result<(), C::Error>
where Self: DefaultContext<Context = C>, C: Default,

Source

fn write_to_vec(&self) -> Result<Vec<u8>, C::Error>
where Self: DefaultContext<Context = C>, C: Default,

Source

fn write_to_stream<S: Write>(&self, stream: S) -> Result<(), C::Error>
where Self: DefaultContext<Context = C>, C: Default,

Source

fn write_to_file(&self, path: impl AsRef<Path>) -> Result<(), C::Error>
where Self: DefaultContext<Context = C>, C: Default,

Source

fn write_to_buffer_with_ctx( &self, context: C, buffer: &mut [u8], ) -> Result<(), C::Error>

Source

fn write_to_buffer_with_ctx_mut( &self, context: &mut C, buffer: &mut [u8], ) -> Result<(), C::Error>

Source

fn write_to_vec_with_ctx(&self, context: C) -> Result<Vec<u8>, C::Error>

Source

fn write_to_vec_with_ctx_mut( &self, context: &mut C, ) -> Result<Vec<u8>, C::Error>

Source

fn write_to_stream_with_ctx<S: Write>( &self, context: C, stream: S, ) -> Result<(), C::Error>

Source

fn write_to_file_with_ctx( &self, context: C, path: impl AsRef<Path>, ) -> Result<(), C::Error>

Source

fn bytes_needed(&self) -> Result<usize, C::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, C, T> Writable<C> for &'a T
where C: Context, T: Writable<C>,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<'a, C, T> Writable<C> for &'a mut T
where C: Context, T: Writable<C>,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<'a, C: Context, T: Writable<C>> Writable<C> for &'a [T]
where [T]: ToOwned,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<'a, C: Context> Writable<C> for &'a str

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<'r, C, K, V> Writable<C> for Cow<'r, BTreeMap<K, V>>
where C: Context, K: Writable<C> + Clone + Ord, V: Writable<C> + Clone,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<'r, C, K, V> Writable<C> for Cow<'r, HashMap<K, V>>
where C: Context, K: Writable<C> + Clone + Hash + Eq, V: Writable<C> + Clone,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<'r, C, T> Writable<C> for Cow<'r, BTreeSet<T>>
where C: Context, T: Writable<C> + Clone + Ord,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<'r, C, T> Writable<C> for Cow<'r, HashSet<T>>
where C: Context, T: Writable<C> + Clone + Hash + Eq,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<'r, C: Context, T: Writable<C>> Writable<C> for Cow<'r, [T]>
where [T]: ToOwned,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<'r, C: Context> Writable<C> for Cow<'r, str>

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C, K, V, S> Writable<C> for HashMap<K, V, S>
where C: Context, K: Writable<C>, V: Writable<C>,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C, K, V> Writable<C> for BTreeMap<K, V>
where C: Context, K: Writable<C>, V: Writable<C>,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C, T, S> Writable<C> for HashSet<T, S>
where C: Context, T: Writable<C>,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C, T, const N: usize> Writable<C> for [T; N]
where C: Context, T: Writable<C>,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C, T> Writable<C> for BTreeSet<T>
where C: Context, T: Writable<C>,

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C, T> Writable<C> for Box<T>
where C: Context, T: Writable<C>,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C, T> Writable<C> for Box<[T]>
where C: Context, T: Writable<C>,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>, A1: Writable<C>, A2: Writable<C>, A3: Writable<C>, A4: Writable<C>, A5: Writable<C>, A6: Writable<C>, A7: Writable<C>, A8: Writable<C>, A9: Writable<C>, A10: Writable<C>> Writable<C> for (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>, A1: Writable<C>, A2: Writable<C>, A3: Writable<C>, A4: Writable<C>, A5: Writable<C>, A6: Writable<C>, A7: Writable<C>, A8: Writable<C>, A9: Writable<C>> Writable<C> for (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>, A1: Writable<C>, A2: Writable<C>, A3: Writable<C>, A4: Writable<C>, A5: Writable<C>, A6: Writable<C>, A7: Writable<C>, A8: Writable<C>> Writable<C> for (A0, A1, A2, A3, A4, A5, A6, A7, A8)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>, A1: Writable<C>, A2: Writable<C>, A3: Writable<C>, A4: Writable<C>, A5: Writable<C>, A6: Writable<C>, A7: Writable<C>> Writable<C> for (A0, A1, A2, A3, A4, A5, A6, A7)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>, A1: Writable<C>, A2: Writable<C>, A3: Writable<C>, A4: Writable<C>, A5: Writable<C>, A6: Writable<C>> Writable<C> for (A0, A1, A2, A3, A4, A5, A6)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>, A1: Writable<C>, A2: Writable<C>, A3: Writable<C>, A4: Writable<C>, A5: Writable<C>> Writable<C> for (A0, A1, A2, A3, A4, A5)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>, A1: Writable<C>, A2: Writable<C>, A3: Writable<C>, A4: Writable<C>> Writable<C> for (A0, A1, A2, A3, A4)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>, A1: Writable<C>, A2: Writable<C>, A3: Writable<C>> Writable<C> for (A0, A1, A2, A3)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>, A1: Writable<C>, A2: Writable<C>> Writable<C> for (A0, A1, A2)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>, A1: Writable<C>> Writable<C> for (A0, A1)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, A0: Writable<C>> Writable<C> for (A0,)

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, T: Writable<C>, E: Writable<C>> Writable<C> for Result<T, E>

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, T: Writable<C>> Writable<C> for Option<T>

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, T: Writable<C>> Writable<C> for Range<T>

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, T: Writable<C>> Writable<C> for RangeInclusive<T>

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, T: Writable<C>> Writable<C> for Vec<T>

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context, T: Writable<C>> Writable<C> for [T]

Source§

fn write_to<W: ?Sized + Writer<C>>( &self, writer: &mut W, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for ()

Source§

fn write_to<W: ?Sized + Writer<C>>(&self, _: &mut W) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for AtomicI8

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for AtomicI16

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for AtomicI32

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for AtomicI64

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for AtomicU8

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for AtomicU16

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for AtomicU32

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for AtomicU64

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for String

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for bool

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for char

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for f32

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for f64

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for i8

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for i16

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for i32

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for i64

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for i128

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for str

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for u8

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for u16

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for u32

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for u64

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for u128

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C: Context> Writable<C> for usize

Source§

fn write_to<T: ?Sized + Writer<C>>( &self, writer: &mut T, ) -> Result<(), C::Error>

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for Box<str>
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for Duration
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for IpAddr
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for Ipv4Addr
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for Ipv6Addr
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for NonZeroI8
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for NonZeroI16
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for NonZeroI32
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for NonZeroI64
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for NonZeroU8
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for NonZeroU16
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for NonZeroU32
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for NonZeroU64
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Source§

impl<C> Writable<C> for SystemTime
where C: Context,

Source§

fn write_to<W>(&self, writer: &mut W) -> Result<(), C::Error>
where W: ?Sized + Writer<C>,

Source§

fn bytes_needed(&self) -> Result<usize, C::Error>

Implementors§