pub struct PrefixedPayload(/* private fields */);实现§
Source§impl PrefixedPayload
impl PrefixedPayload
pub fn with_capacity(capacity: usize) -> Self
pub fn extend_from_slice(&mut self, slice: &[u8])
pub fn extend_from_chunks(&mut self, chunks: &OutboundChunks<'_>)
pub fn truncate(&mut self, len: usize)
Trait 实现§
Source§impl AsMut<[u8]> for PrefixedPayload
impl AsMut<[u8]> for PrefixedPayload
Source§impl AsRef<[u8]> for PrefixedPayload
impl AsRef<[u8]> for PrefixedPayload
Source§impl Clone for PrefixedPayload
impl Clone for PrefixedPayload
Source§fn clone(&self) -> PrefixedPayload
fn clone(&self) -> PrefixedPayload
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment 从
source. 更多信息Source§impl Debug for PrefixedPayload
impl Debug for PrefixedPayload
Source§impl<'a> Extend<&'a u8> for PrefixedPayload
impl<'a> Extend<&'a u8> for PrefixedPayload
Source§fn extend<T: IntoIterator<Item = &'a u8>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = &'a u8>>(&mut self, iter: T)
Extends 一个 collection with the contents of an iterator. 更多信息
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends 一个 collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in 一个 collection 的 given number of additional elements. 更多信息
自动 Trait 实现§
impl Freeze for PrefixedPayload
impl RefUnwindSafe for PrefixedPayload
impl Send for PrefixedPayload
impl Sync for PrefixedPayload
impl Unpin for PrefixedPayload
impl UnsafeUnpin for PrefixedPayload
impl UnwindSafe for PrefixedPayload
Blanket 实现§
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 从 an owned value. 更多信息