pub struct Prost<T, const S: usize = 0> { /* private fields */ }Trait Implementations§
Source§impl<T, const S: usize> Value for Prost<T, S>
impl<T, const S: usize> Value for Prost<T, S>
Source§type SelfType<'a> = T
where
Self: 'a
type SelfType<'a> = T where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Auto Trait Implementations§
impl<T, const S: usize> Freeze for Prost<T, S>
impl<T, const S: usize> RefUnwindSafe for Prost<T, S>where
T: RefUnwindSafe,
impl<T, const S: usize> Send for Prost<T, S>where
T: Send,
impl<T, const S: usize> Sync for Prost<T, S>where
T: Sync,
impl<T, const S: usize> Unpin for Prost<T, S>where
T: Unpin,
impl<T, const S: usize> UnwindSafe for Prost<T, S>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