pub struct SasCode {
pub emoji_indices: [u8; 7],
pub decimal: String,
}Expand description
SAS code information given to both sides for OOB comparison.
Fields§
§emoji_indices: [u8; 7]7 emoji indices into SAS_EMOJI (each 0..49). Human-friendly
for visual comparison; works in any modern terminal with emoji
support. Matches Matrix MSC 2241 shape.
decimal: StringThree 4-digit groups separated by -, each in 1000..=9191,
per MSC 2241. Easier to read aloud than a flat 7-digit number.
Implementations§
Source§impl SasCode
impl SasCode
pub fn emoji_string(&self) -> String
pub fn emoji_labels(&self) -> String
Trait Implementations§
impl Eq for SasCode
impl StructuralPartialEq for SasCode
Auto Trait Implementations§
impl Freeze for SasCode
impl RefUnwindSafe for SasCode
impl Send for SasCode
impl Sync for SasCode
impl Unpin for SasCode
impl UnsafeUnpin for SasCode
impl UnwindSafe for SasCode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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