pub struct DetectorId(pub String);Expand description
Identifier of a detector. A distinct type from a bare String, same
rationale as net’s crate::domain::EdgeId.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl<__AsT: ?Sized> AsRef<__AsT> for DetectorId
impl<__AsT: ?Sized> AsRef<__AsT> for DetectorId
Source§impl Clone for DetectorId
impl Clone for DetectorId
Source§impl Debug for DetectorId
impl Debug for DetectorId
Source§impl Display for DetectorId
impl Display for DetectorId
impl Eq for DetectorId
Source§impl From<String> for DetectorId
impl From<String> for DetectorId
Source§impl Hash for DetectorId
impl Hash for DetectorId
Source§impl Ord for DetectorId
impl Ord for DetectorId
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 PartialEq for DetectorId
impl PartialEq for DetectorId
Source§impl PartialOrd for DetectorId
impl PartialOrd for DetectorId
impl StructuralPartialEq for DetectorId
Auto Trait Implementations§
impl Freeze for DetectorId
impl RefUnwindSafe for DetectorId
impl Send for DetectorId
impl Sync for DetectorId
impl Unpin for DetectorId
impl UnsafeUnpin for DetectorId
impl UnwindSafe for DetectorId
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> Comparable<K> for Q
impl<Q, K> Comparable<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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.