pub trait ArgValue {
// Required methods
fn of<'a>(key: &'a str, value: Self) -> Arg<'a>
where Self: 'a;
fn of_registered<'a>(name_ref: trace_string_ref_t, value: Self) -> Arg<'a>
where Self: 'a;
}
Expand description
A trait for types that can be the values of an argument set.
This trait is not implementable by users of the library.
Users should instead use one of the common types which implements
ArgValue
, such as i32
, f64
, or &str
.
Required Methods§
fn of<'a>(key: &'a str, value: Self) -> Arg<'a>where
Self: 'a,
fn of_registered<'a>(name_ref: trace_string_ref_t, value: Self) -> Arg<'a>where
Self: 'a,
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.