Trait shipyard::Label

source ·
pub trait Label:
    'static
    + Send
    + Sync {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn dyn_eq(&self, other: &dyn Label) -> bool;
    fn dyn_hash(&self, state: &mut dyn Hasher);
    fn dyn_clone(&self) -> Box<dyn Label>;
    fn dyn_debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>;
}
Expand description

Workload identifier

Required Methods§

source

fn as_any(&self) -> &dyn Any

source

fn dyn_eq(&self, other: &dyn Label) -> bool

source

fn dyn_hash(&self, state: &mut dyn Hasher)

source

fn dyn_clone(&self) -> Box<dyn Label>

source

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

Trait Implementations§

source§

impl Clone for Box<dyn Label>

source§

fn clone(&self) -> Self

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 Debug for dyn Label

source§

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

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

impl Hash for dyn Label

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
source§

impl Label for Box<dyn Label>

source§

fn as_any(&self) -> &dyn Any

source§

fn dyn_eq(&self, other: &dyn Label) -> bool

source§

fn dyn_hash(&self, state: &mut dyn Hasher)

source§

fn dyn_clone(&self) -> Box<dyn Label>

source§

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

source§

impl PartialEq for dyn Label

source§

fn eq(&self, other: &Self) -> bool

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

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

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

impl Eq for dyn Label

Implementations on Foreign Types§

source§

impl Label for &'static str

source§

fn as_any(&self) -> &dyn Any

source§

fn dyn_eq(&self, other: &dyn Label) -> bool

source§

fn dyn_hash(&self, state: &mut dyn Hasher)

source§

fn dyn_clone(&self) -> Box<dyn Label>

source§

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

source§

impl Label for Cow<'static, str>

source§

fn as_any(&self) -> &dyn Any

source§

fn dyn_eq(&self, other: &dyn Label) -> bool

source§

fn dyn_hash(&self, state: &mut dyn Hasher)

source§

fn dyn_clone(&self) -> Box<dyn Label>

source§

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

source§

impl Label for Box<dyn Label>

source§

fn as_any(&self) -> &dyn Any

source§

fn dyn_eq(&self, other: &dyn Label) -> bool

source§

fn dyn_hash(&self, state: &mut dyn Hasher)

source§

fn dyn_clone(&self) -> Box<dyn Label>

source§

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

source§

impl Label for String

source§

fn as_any(&self) -> &dyn Any

source§

fn dyn_eq(&self, other: &dyn Label) -> bool

source§

fn dyn_hash(&self, state: &mut dyn Hasher)

source§

fn dyn_clone(&self) -> Box<dyn Label>

source§

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

Implementors§