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.

Object Safety§

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§