Skip to main content

Source

Trait Source 

Source
pub unsafe trait Source: AsRef<[u8]> { }
Expand description

§Safety

Shared access preserves its exact backing, range, and contents until exclusive mutation. Writes preserve the initialized prefix; successful writes append their complete input.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Source for &[u8]

Source§

impl Source for Vec<u8>

Source§

impl Source for [u8]

Source§

impl<const N: usize> Source for &[u8; N]

Source§

impl<const N: usize> Source for [u8; N]

Implementors§

Source§

impl Source for o3::buffer::storage::Exact

Source§

impl Source for o3::buffer::resident::Exact<'_>

Source§

impl Source for Shared<'_>

Source§

impl<L, M> Source for Cursor<L, M>

Source§

impl<L> Source for Span<Plain<L>, Owned, Frozen>

Source§

impl<P: Policy> Source for Owned<P>

Source§

impl<T: Consume> Source for T

Source§

impl<T: Source> Source for NonEmpty<T>

Source§

impl<T: Source> Source for Prefix<'_, '_, T>

Source§

impl<T: Source> Source for Value<Prefix<'_, '_, T>>

Source§

impl<const CAP: usize, L> Source for Bytes<CAP, L>
where Bytes<CAP, L>: AsRef<[u8]>,

Source§

impl<const MAX_CAPACITY: usize> Source for Snapshot<MAX_CAPACITY>