pub struct TerminalDiagnosticId(pub u64);Expand description
Classification-local diagnostic identity.
TerminalOutputClassifier::classify assigns IDs from one in output order
on every call; IDs are not stable across changed classifications. Any u64
can also be constructed or deserialized.
§Examples
use ailloli_ui_terminal_core::TerminalDiagnosticId;
assert_eq!(TerminalDiagnosticId(1).0, 1);Tuple Fields§
§0: u64Raw classification-local numeric identity.
Trait Implementations§
Source§impl Clone for TerminalDiagnosticId
impl Clone for TerminalDiagnosticId
Source§fn clone(&self) -> TerminalDiagnosticId
fn clone(&self) -> TerminalDiagnosticId
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 TerminalDiagnosticId
impl Debug for TerminalDiagnosticId
Source§impl<'de> Deserialize<'de> for TerminalDiagnosticId
impl<'de> Deserialize<'de> for TerminalDiagnosticId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TerminalDiagnosticId
impl Hash for TerminalDiagnosticId
Source§impl PartialEq for TerminalDiagnosticId
impl PartialEq for TerminalDiagnosticId
Source§impl Serialize for TerminalDiagnosticId
impl Serialize for TerminalDiagnosticId
impl Copy for TerminalDiagnosticId
impl Eq for TerminalDiagnosticId
impl StructuralPartialEq for TerminalDiagnosticId
Auto Trait Implementations§
impl Freeze for TerminalDiagnosticId
impl RefUnwindSafe for TerminalDiagnosticId
impl Send for TerminalDiagnosticId
impl Sync for TerminalDiagnosticId
impl Unpin for TerminalDiagnosticId
impl UnwindSafe for TerminalDiagnosticId
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