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 AnySendValue
pub fn new<T: Any + Clone + Send + 'static>(val: T) -> Self
[src]
pub fn new<T: Any + Clone + Send + 'static>(val: T) -> Self
Create 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 AnySendValue
fn clone(&self) -> AnySendValue
[src]
fn clone(&self) -> AnySendValue
Returns 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 AnySendValue
impl Debug for AnySendValue
[src]
impl Debug for AnySendValue
fn 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 AnySendValue
type Target = AnyValue
The resulting type after dereferencing.
fn deref(&self) -> &AnyValue
[src]
fn deref(&self) -> &AnyValue
Dereferences the value.
impl<'a> FromValueOptional<'a> for &'a AnySendValue
[src]
impl<'a> FromValueOptional<'a> for &'a AnySendValue
unsafe 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 AnySendValue
impl StaticType for AnySendValue
[src]
impl StaticType for AnySendValue
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
Auto Trait Implementations
impl !Sync for AnySendValue
impl !Sync for AnySendValue