Enum pnet::packet::MutPacketData
[−]
[src]
pub enum MutPacketData<'p> { Owned(Vec<u8>), Borrowed(&'p mut [u8]), }
Variants
Owned(Vec<u8>)
Borrowed(&'p mut [u8])
Methods
impl<'p> MutPacketData<'p>
[src]
fn as_slice(&self) -> &[u8]
fn as_mut_slice(&mut self) -> &mut [u8]
fn to_immutable(self) -> PacketData<'p>
fn len(&self) -> usize
Trait Implementations
impl<'p> PartialEq for MutPacketData<'p>
[src]
fn eq(&self, __arg_0: &MutPacketData<'p>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MutPacketData<'p>) -> bool
This method tests for !=
.
impl<'p> Index<usize> for MutPacketData<'p>
[src]
type Output = u8
The returned type after indexing
fn index(&self, index: usize) -> &u8
The method for the indexing (container[index]
) operation
impl<'p> Index<Range<usize>> for MutPacketData<'p>
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: Range<usize>) -> &[u8]
The method for the indexing (container[index]
) operation
impl<'p> Index<RangeTo<usize>> for MutPacketData<'p>
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: RangeTo<usize>) -> &[u8]
The method for the indexing (container[index]
) operation
impl<'p> Index<RangeFrom<usize>> for MutPacketData<'p>
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: RangeFrom<usize>) -> &[u8]
The method for the indexing (container[index]
) operation
impl<'p> Index<RangeFull> for MutPacketData<'p>
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: RangeFull) -> &[u8]
The method for the indexing (container[index]
) operation
impl<'p> IndexMut<usize> for MutPacketData<'p>
[src]
fn index_mut(&mut self, index: usize) -> &mut u8
The method for the mutable indexing (container[index]
) operation
impl<'p> IndexMut<Range<usize>> for MutPacketData<'p>
[src]
fn index_mut(&mut self, index: Range<usize>) -> &mut [u8]
The method for the mutable indexing (container[index]
) operation
impl<'p> IndexMut<RangeTo<usize>> for MutPacketData<'p>
[src]
fn index_mut(&mut self, index: RangeTo<usize>) -> &mut [u8]
The method for the mutable indexing (container[index]
) operation
impl<'p> IndexMut<RangeFrom<usize>> for MutPacketData<'p>
[src]
fn index_mut(&mut self, index: RangeFrom<usize>) -> &mut [u8]
The method for the mutable indexing (container[index]
) operation