Struct glib::value::AnySendValue
[−]
[src]
pub struct AnySendValue(_);
A container type that allows storing any 'static type that implements Any, Clone and
Send to be stored in a Value or SendValue.
See the module documentation for more details and the
AnyValue for a code example.
Methods
impl AnySendValue[src]
pub fn new<T: Any + Clone + Send + 'static>(val: T) -> Self[src]
Create a new AnySendValue from val.
pub fn downcast<T: Any + Clone + Send + 'static>(self) -> Result<T, Self>[src]
Attempt the value to its concrete type.
Methods from Deref<Target = AnyValue>
Trait Implementations
impl Clone for AnySendValue[src]
fn clone(&self) -> AnySendValue[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Send for AnySendValue[src]
impl Debug for AnySendValue[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl Deref for AnySendValue[src]
type Target = AnyValue
The resulting type after dereferencing.
fn deref(&self) -> &AnyValue[src]
Dereferences the value.
impl<'a> FromValueOptional<'a> for &'a AnySendValue[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>[src]
impl SetValue for AnySendValue[src]
impl StaticType for AnySendValue[src]
fn static_type() -> Type[src]
Returns the type identifier of Self.