Struct glib::value::SendValue[][src]

#[repr(C)]
pub struct SendValue(_);

A version of Value for storing Send types, that implements Send itself.

See the module documentation for more details.

Methods

impl SendValue
[src]

Tries to downcast to a TypedValue.

Returns Ok(TypedValue<T>) if the value carries a type corresponding to T and Err(self) otherwise.

Tries to downcast to a &TypedValue.

Returns Some(&TypedValue<T>) if the value carries a type corresponding to T and None otherwise.

Methods from Deref<Target = Value>

Tries to downcast to a &TypedValue.

Returns Some(&TypedValue<T>) if the value carries a type corresponding to T and None otherwise.

Tries to get a value of type T.

Returns Some if the type is correct and the value is not None.

This function doesn't distinguish between type mismatches and correctly typed None values. Use downcast or is for that.

Returns true if the type of the value corresponds to T or is a sub-type of T.

Returns the type of the value.

Trait Implementations

impl From<SendValue> for Value
[src]

Performs the conversion.

impl Clone for SendValue
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Send for SendValue
[src]

impl Debug for SendValue
[src]

Formats the value using the given formatter. Read more

impl Deref for SendValue
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<'a, T: ?Sized + SetValueOptional + Send> From<Option<&'a T>> for SendValue
[src]

Performs the conversion.

impl<'a, T: ?Sized + SetValue + Send> From<&'a T> for SendValue
[src]

Performs the conversion.

impl<T: Send> From<TypedValue<T>> for SendValue
[src]

Performs the conversion.

impl FromGlibPtrNone<*const GValue> for SendValue
[src]

impl FromGlibPtrNone<*mut GValue> for SendValue
[src]

impl FromGlibPtrFull<*mut GValue> for SendValue
[src]

impl FromGlibContainerAsVec<*mut GValue, *mut *mut GValue> for SendValue
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

Important traits for Vec<u8>

impl FromGlibPtrArrayContainerAsVec<*mut GValue, *mut *mut GValue> for SendValue
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

Important traits for Vec<u8>

impl FromGlibContainerAsVec<*mut GValue, *const *mut GValue> for SendValue
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

Important traits for Vec<u8>

impl FromGlibPtrArrayContainerAsVec<*mut GValue, *const *mut GValue> for SendValue
[src]

Important traits for Vec<u8>

Important traits for Vec<u8>

Important traits for Vec<u8>

impl<'a> ToGlibPtrMut<'a, *mut GValue> for SendValue
[src]

Transfer: none. Read more

impl ToSendValue for SendValue
[src]

Returns a SendValue clone of self.

impl ToValue for SendValue
[src]

Returns a Value clone of self.

Returns the type identifer of self. Read more

Auto Trait Implementations

impl !Sync for SendValue