pub struct Ecgi { /* private fields */ }Expand description
An E-UTRAN Cell Global Identity: network plus Eci.
Implementations§
Source§impl Ecgi
impl Ecgi
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
Decode the seven-octet ECGI of 3GPP TS 29.274 §8.21.5.
The cell identity is 28 bits, so the top nibble of the fourth octet is spare. It is not required to be zero — elements do set it — but it is masked off rather than folded into the identity, which would produce a cell that does not exist.
§Errors
DecodeError for the wrong length or a malformed PLMN identity.
Trait Implementations§
impl Copy for Ecgi
impl Eq for Ecgi
Source§impl Ord for Ecgi
impl Ord for Ecgi
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Ecgi
impl PartialOrd for Ecgi
impl StructuralPartialEq for Ecgi
Auto Trait Implementations§
impl Forget for Ecgi
impl Freeze for Ecgi
impl Move for Ecgi
impl RefUnwindSafe for Ecgi
impl Send for Ecgi
impl Sync for Ecgi
impl Unpin for Ecgi
impl UnsafeUnpin for Ecgi
impl UnwindSafe for Ecgi
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