glib::value

Trait ToValueOptional

Source
pub trait ToValueOptional {
    // Required method
    fn to_value_optional(s: Option<&Self>) -> Value;
}
Expand description

Trait to convert an Option to a Value for optional types.

Required Methods§

Source

fn to_value_optional(s: Option<&Self>) -> Value

Convert an Option to a 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.

Implementations on Foreign Types§

Source§

impl ToValueOptional for str

Source§

impl ToValueOptional for Box<str>

Source§

impl ToValueOptional for String

Source§

impl ToValueOptional for NonNull<Pointee>

Source§

impl ToValueOptional for Path

Source§

impl ToValueOptional for PathBuf

Source§

impl ToValueOptional for NonZeroI8

Source§

impl ToValueOptional for NonZeroI32

Source§

impl ToValueOptional for NonZeroI64

Source§

impl ToValueOptional for NonZeroU8

Source§

impl ToValueOptional for NonZeroU32

Source§

impl ToValueOptional for NonZeroU64

Source§

impl<T: ToValueOptional + StaticType + ?Sized> ToValueOptional for &T

Implementors§