Skip to main content

ChangeMarker

Trait ChangeMarker 

Source
pub trait ChangeMarker {
    const IS_ADDED: usize;
    const IS_REMOVED: usize;
    const IS_REPLACED: usize;
    const IS_DEPRECATED: usize;

    // Required method
    fn describe() -> String;
}
Expand description

Sealed helper trait implemented by each change marker. Used internally by ApiChangelog counting logic.

Required Associated Constants§

Source

const IS_ADDED: usize

1 if this is an Added, 0 otherwise.

Source

const IS_REMOVED: usize

1 if this is a Removed, 0 otherwise.

Source

const IS_REPLACED: usize

1 if this is a Replaced, 0 otherwise.

Source

const IS_DEPRECATED: usize

1 if this is a Deprecated, 0 otherwise.

Required Methods§

Source

fn describe() -> String

Human-readable description of this change.

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§