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]
impl AnySendValuepub fn new<T: Any + Clone + Send + 'static>(val: T) -> Self[src]
pub fn new<T: Any + Clone + Send + 'static>(val: T) -> SelfCreate a new AnySendValue from val.
pub fn downcast<T: Any + Clone + Send + 'static>(self) -> Result<T, Self>[src]
pub fn downcast<T: Any + Clone + Send + 'static>(self) -> Result<T, Self>Attempt the value to its concrete type.
Methods from Deref<Target = AnyValue>
Trait Implementations
impl Clone for AnySendValue[src]
impl Clone for AnySendValuefn clone(&self) -> AnySendValue[src]
fn clone(&self) -> AnySendValueReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Send for AnySendValue[src]
impl Send for AnySendValueimpl Debug for AnySendValue[src]
impl Debug for AnySendValuefn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Deref for AnySendValue[src]
impl Deref for AnySendValuetype Target = AnyValue
The resulting type after dereferencing.
fn deref(&self) -> &AnyValue[src]
fn deref(&self) -> &AnyValueDereferences the value.
impl<'a> FromValueOptional<'a> for &'a AnySendValue[src]
impl<'a> FromValueOptional<'a> for &'a AnySendValueunsafe fn from_value_optional(value: &'a Value) -> Option<Self>[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>impl SetValue for AnySendValue[src]
impl SetValue for AnySendValueimpl StaticType for AnySendValue[src]
impl StaticType for AnySendValuefn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
Auto Trait Implementations
impl !Sync for AnySendValue
impl !Sync for AnySendValue