Trait Dummy

Source
pub trait Dummy {
    // Required methods
    fn dummy() -> Self;
    fn is_dummy(&self) -> bool;
}
Expand description

A helper trait with functions for dummy values that pretend to be valid.

Required Methods§

Source

fn dummy() -> Self

Create a dummy value pretending to be a valid one.

Source

fn is_dummy(&self) -> bool

Check if this is a dummy value.

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.

Implementors§

Source§

impl Dummy for AnyExpr

Source§

impl Dummy for Circle

Source§

impl Dummy for Line

Source§

impl Dummy for Point

Source§

impl Dummy for Unknown

Source§

impl Dummy for CircleNode

Source§

impl Dummy for EmptyNode

Source§

impl Dummy for LineNode

Source§

impl Dummy for NoContentNode

Source§

impl Dummy for NumberNode

Source§

impl Dummy for PCNode

Source§

impl Dummy for PointNode

Source§

impl Dummy for Derived

Source§

impl Dummy for Number

Source§

impl Dummy for PointCollection

Source§

impl<T: Displayed + Dummy> Dummy for Expr<T>

Source§

impl<const DST_NUM: i64, const DST_DENOM: i64, const ANG_NUM: i64, const ANG_DENOM: i64> Dummy for NumberUnit<DST_NUM, DST_DENOM, ANG_NUM, ANG_DENOM>