Trait glib::value::ToValue
[−]
[src]
pub trait ToValue { fn to_value(&self) -> Value; fn to_value_type(&self) -> Type; }
Converts to Value
.
Required Methods
fn to_value(&self) -> Value
Returns a Value
clone of self
.
fn to_value_type(&self) -> Type
Returns the type identifer of self
.
This is the type of the value to be returned by to_value
.
Implementors
impl<T: SetValueOptional> ToValue for Option<T>
impl<T: ?Sized + SetValue> ToValue for T
impl ToValue for Value