Trait SpanWeight

Source
pub trait SpanWeight<S>:
    PartialEq
    + Default
    + Debug
    + Clone {
    // Required methods
    fn alloc(_span: &S) -> Self;
    fn and(self, b: &Self) -> Self;
    fn union(&mut self, other: &Self);
    fn maybe_sub(&mut self, other: &Self) -> bool;
}

Required Methods§

Source

fn alloc(_span: &S) -> Self

Source

fn and(self, b: &Self) -> Self

Source

fn union(&mut self, other: &Self)

Source

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

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> SpanWeight<T> for ()

Source§

fn alloc(_t: &T) -> Self

Source§

fn and(self, _b: &Self) -> Self

Source§

fn union(&mut self, _other: &Self)

Source§

fn maybe_sub(&mut self, _other: &Self) -> bool

Implementors§