Struct huawei_modem::pdu::PhoneNumber
source · pub struct PhoneNumber(pub Vec<u8>);
Expand description
A GSM phone number, encoded using their weird half-octet encoding.
Tuple Fields§
§0: Vec<u8>
Implementations§
Trait Implementations§
source§impl Clone for PhoneNumber
impl Clone for PhoneNumber
source§fn clone(&self) -> PhoneNumber
fn clone(&self) -> PhoneNumber
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PhoneNumber
impl Debug for PhoneNumber
source§impl<'a> From<&'a [u8]> for PhoneNumber
impl<'a> From<&'a [u8]> for PhoneNumber
Make a phone number from some ordinary bytes.
Note that only the least significant 4 bytes are used in this conversion, due to the way GSM phone numbers work. The top 4 bytes are discarded!
source§impl Hash for PhoneNumber
impl Hash for PhoneNumber
source§impl PartialEq<PhoneNumber> for PhoneNumber
impl PartialEq<PhoneNumber> for PhoneNumber
source§fn eq(&self, other: &PhoneNumber) -> bool
fn eq(&self, other: &PhoneNumber) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PhoneNumber
impl StructuralEq for PhoneNumber
impl StructuralPartialEq for PhoneNumber
Auto Trait Implementations§
impl RefUnwindSafe for PhoneNumber
impl Send for PhoneNumber
impl Sync for PhoneNumber
impl Unpin for PhoneNumber
impl UnwindSafe for PhoneNumber
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