pub struct ObjId(/* private fields */);
Expand description
An object id. Its meaning is determined by the channel belonged to.
The representation is 2 digits of ASCII characters.
Implementations§
Source§impl ObjId
impl ObjId
Sourcepub fn from_chars(chars: [char; 2]) -> Result<Self>
pub fn from_chars(chars: [char; 2]) -> Result<Self>
Converts 2-digit of base-62 numeric characters into an object id.
Sourcepub fn make_uppercase(&mut self)
pub fn make_uppercase(&mut self)
Makes the object id uppercase.
Trait Implementations§
Source§impl Ord for ObjId
impl Ord for ObjId
Source§impl PartialOrd for ObjId
impl PartialOrd for ObjId
impl Copy for ObjId
impl Eq for ObjId
impl StructuralPartialEq for ObjId
Auto Trait Implementations§
impl Freeze for ObjId
impl RefUnwindSafe for ObjId
impl Send for ObjId
impl Sync for ObjId
impl Unpin for ObjId
impl UnwindSafe for ObjId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more