Trace

Trait Trace 

Source
pub trait Trace {
    // Required method
    fn copy_from(&mut self, other: &Self);
}
Expand description

Represents the trace captured by a tracing evaluation

The only property enforced on the trait is that we must have a way of reusing trace allocations. Because Trace implies Clone where it’s used in Function, this is trivial, but we can’t provide a default implementation because it would fall afoul of impl specialization.

Required Methods§

Source

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

Copies the contents of other into self

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: Copy + Clone + Default> Trace for Vec<T>

Source§

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

Implementors§