pub struct DiffOp<T> {
pub code: DiffOpCode,
pub value: Option<T>,
}
Fields§
§code: DiffOpCode
§value: Option<T>
Trait Implementations§
Source§impl<'de, T> RawDecode<'de> for DiffOp<T>where
T: RawDecode<'de>,
impl<'de, T> RawDecode<'de> for DiffOp<T>where
T: RawDecode<'de>,
fn raw_decode(buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>
fn raw_decode_with_option( buf: &'de [u8], _opt: &RawDecodeOption, ) -> BuckyResult<(Self, &'de [u8])>
Auto Trait Implementations§
impl<T> Freeze for DiffOp<T>where
T: Freeze,
impl<T> RefUnwindSafe for DiffOp<T>where
T: RefUnwindSafe,
impl<T> Send for DiffOp<T>where
T: Send,
impl<T> Sync for DiffOp<T>where
T: Sync,
impl<T> Unpin for DiffOp<T>where
T: Unpin,
impl<T> UnwindSafe for DiffOp<T>where
T: UnwindSafe,
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<'de, D> FileDecoder<'de> for Dwhere
D: RawDecode<'de>,
impl<'de, D> FileDecoder<'de> for Dwhere
D: RawDecode<'de>,
fn decode_from_file( file: &Path, buf: &'de mut Vec<u8>, ) -> Result<(D, usize), BuckyError>
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