Trait FromValue

Source
pub trait FromValue<'a>: FromValueOptional<'a> {
    // Required method
    unsafe fn from_value(: &'a Value) -> Self;
}
Expand description

Extracts a value.

Only implemented for types that don’t support a None value.

Required Methods§

Source

unsafe fn from_value(: &'a Value) -> 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<'a> FromValue<'a> for bool

Source§

unsafe fn from_value(value: &'a Value) -> Self

Source§

impl<'a> FromValue<'a> for f32

Source§

unsafe fn from_value(value: &'a Value) -> Self

Source§

impl<'a> FromValue<'a> for f64

Source§

unsafe fn from_value(value: &'a Value) -> Self

Source§

impl<'a> FromValue<'a> for i8

Source§

unsafe fn from_value(value: &'a Value) -> Self

Source§

impl<'a> FromValue<'a> for i32

Source§

unsafe fn from_value(value: &'a Value) -> Self

Source§

impl<'a> FromValue<'a> for i64

Source§

unsafe fn from_value(value: &'a Value) -> Self

Source§

impl<'a> FromValue<'a> for u8

Source§

unsafe fn from_value(value: &'a Value) -> Self

Source§

impl<'a> FromValue<'a> for u32

Source§

unsafe fn from_value(value: &'a Value) -> Self

Source§

impl<'a> FromValue<'a> for u64

Source§

unsafe fn from_value(value: &'a Value) -> Self

Source§

impl<'a> FromValue<'a> for Vec<GString>

Source§

unsafe fn from_value(value: &'a Value) -> Self

Source§

impl<'a> FromValue<'a> for Vec<String>

Source§

unsafe fn from_value(value: &'a Value) -> Self

Implementors§

Source§

impl<'a> FromValue<'a> for Type

Source§

impl<'a> FromValue<'a> for BindingFlags

Source§

impl<'a> FromValue<'a> for IOCondition