Trait Same

Source
pub trait Same {
    // Required method
    fn same(&self, other: &Self) -> bool;
}
Expand description

Equality-like operator for comparing strand information. Unknown strands are not equal, but they are the “same” as other unknown strands.

Required Methods§

Source

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

Indicate when two strands are the “same” – two unknown/unspecified strands are the “same” but are not equal.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> Same for Option<T>
where T: Same,

Source§

fn same(&self, s1: &Self) -> bool

Implementors§

Source§

impl Same for NoStrand

Source§

impl Same for ReqStrand

Source§

impl Same for Strand

Source§

impl<R, S> Same for Pos<R, S>
where R: Eq, S: Same,