Skip to main content

Options

Trait Options 

Source
pub trait Options:
    Any
    + Send
    + Sync
    + Default
    + Hash
    + Debug { }
Expand description

The requirements an option type meets: a value that can be shared between threads (Any + Send + Sync), has a default (Default), can be digested (Hash) and can be printed in messages (Debug).

This trait has no methods and is implemented for every type that meets the requirements, so a feature writes a plain struct and derives Default, Hash and Debug on it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Any + Send + Sync + Default + Hash + Debug> Options for T