pub struct Place<T: EncodedSize> { /* private fields */ }Expand description
A place in the encoded stream that the encoder can rewrite
Implementations§
Source§impl<T: EncodedSize> Place<T>
impl<T: EncodedSize> Place<T>
Sourcepub fn replace(
self,
encoder: &mut BinEncoder<'_>,
data: T,
) -> Result<(), ProtoError>
pub fn replace( self, encoder: &mut BinEncoder<'_>, data: T, ) -> Result<(), ProtoError>
Replaces the data at this place with the given data
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Place<T>
impl<T> RefUnwindSafe for Place<T>where
T: RefUnwindSafe,
impl<T> Send for Place<T>where
T: Send,
impl<T> Sync for Place<T>where
T: Sync,
impl<T> Unpin for Place<T>where
T: Unpin,
impl<T> UnsafeUnpin for Place<T>
impl<T> UnwindSafe for Place<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