pub type IdentTopic = Topic<IdentityHash>;

Aliased Type§

struct IdentTopic { /* private fields */ }

Implementations§

source§

impl<H: Hasher> Topic<H>

source

pub fn new<T: Into<String>>(topic: T) -> Self

source

pub fn hash(&self) -> TopicHash

Trait Implementations§

source§

impl<H: Clone + Hasher> Clone for Topic<H>

source§

fn clone(&self) -> Topic<H>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<H: Debug + Hasher> Debug for Topic<H>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<H: Hasher> Display for Topic<H>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<H: Ord + Hasher> Ord for Topic<H>

source§

fn cmp(&self, other: &Topic<H>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<H: PartialEq + Hasher> PartialEq<Topic<H>> for Topic<H>

source§

fn eq(&self, other: &Topic<H>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<H: PartialOrd + Hasher> PartialOrd<Topic<H>> for Topic<H>

source§

fn partial_cmp(&self, other: &Topic<H>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<H: Eq + Hasher> Eq for Topic<H>

source§

impl<H: Hasher> StructuralEq for Topic<H>

source§

impl<H: Hasher> StructuralPartialEq for Topic<H>