Trait SetValueOptional

Source
pub trait SetValueOptional: SetValue {
    // Required method
    unsafe fn set_value_optional(: &mut Value, : Option<&Self>);
}
Expand description

Sets a value.

Only implemented for types that support a None value.

Required Methods§

Source

unsafe fn set_value_optional(: &mut Value, : Option<&Self>)

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 SetValueOptional for str

Source§

unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)

Source§

impl SetValueOptional for String

Source§

unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)

Source§

impl SetValueOptional for Vec<String>

Source§

unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)

Source§

impl<'a> SetValueOptional for [&'a str]

Source§

unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)

Source§

impl<'a, T: ?Sized + SetValueOptional> SetValueOptional for &'a T

Source§

unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)

Implementors§