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§
Sourceconst IS_REMOVED: usize
const IS_REMOVED: usize
1 if this is a Removed, 0 otherwise.
Sourceconst IS_REPLACED: usize
const IS_REPLACED: usize
1 if this is a Replaced, 0 otherwise.
Sourceconst IS_DEPRECATED: usize
const IS_DEPRECATED: usize
1 if this is a Deprecated, 0 otherwise.
Required Methods§
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.