RawPatch

Trait RawPatch 

Source
pub trait RawPatch<'de>: RawDecode<'de> {
    // Required method
    fn patch(self, diff: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>;
}

Required Methods§

Source

fn patch(self, diff: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'de> RawPatch<'de> for u8

Source§

fn patch(self, buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>

Source§

impl<'de> RawPatch<'de> for u16

Source§

fn patch(self, buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>

Source§

impl<'de> RawPatch<'de> for u32

Source§

fn patch(self, buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>

Source§

impl<'de> RawPatch<'de> for u64

Source§

fn patch(self, buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>

Source§

impl<'de> RawPatch<'de> for u128

Source§

fn patch(self, buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>

Source§

impl<'de> RawPatch<'de> for String

Source§

fn patch(self, buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>

Source§

impl<'de, T> RawPatch<'de> for Option<T>
where T: RawDecode<'de>,

Source§

fn patch(self, buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>

Source§

impl<'de, T> RawPatch<'de> for Vec<T>
where T: RawDecode<'de> + RawEncode,

Source§

fn patch(self, buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>

Source§

impl<'de, T: RawEncode + RawDecode<'de> + Default, U: ArrayLength<T>> RawPatch<'de> for GenericArray<T, U>

Source§

fn patch(self, buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>

Implementors§

Source§

impl<'de> RawPatch<'de> for AesKey

Source§

impl<'de> RawPatch<'de> for ChunkId

Source§

impl<'de> RawPatch<'de> for HashValue

Source§

impl<'de> RawPatch<'de> for ObjectId

Source§

impl<'de, T: From<usize> + RawDecode<'de> + Into<usize>> RawPatch<'de> for SizedOwnedData<T>

Source§

impl<'de, T: ObjectType> RawPatch<'de> for NamedObjectId<T>