[][src]Struct libhandy4::ValueObject

pub struct ValueObject(_);

Implementations

impl ValueObject[src]

pub fn new(value: &Value) -> ValueObject[src]

Create a new ValueObject.

value

the gobject::Value to store

Returns

a new ValueObject

pub fn new_string(string: &str) -> ValueObject[src]

Creates a new ValueObject. This is a convenience method to create a ValueObject that stores a string.

string

the string to store

Returns

a new ValueObject

pub fn new_take_string(string: &str) -> ValueObject[src]

Creates a new ValueObject. This is a convenience method to create a ValueObject that stores a string taking ownership of it.

string

the string to store

Returns

a new ValueObject

pub fn copy_value(&self, dest: &mut Value)[src]

Copy data from the contained gobject::Value into dest.

dest

gobject::Value with correct type to copy into

pub fn dup_string(&self) -> Option<GString>[src]

Returns a copy of the contained string if the value is of type G_TYPE_STRING.

Returns

a copy of the contained string

pub fn get_string(&self) -> Option<GString>[src]

Returns the contained string if the value is of type G_TYPE_STRING.

Returns

the contained string

pub fn get_value(&self) -> Option<Value>[src]

Return the contained value.

Returns

the contained gobject::Value

Trait Implementations

impl Clone for ValueObject[src]

impl Debug for ValueObject[src]

impl Display for ValueObject[src]

impl Eq for ValueObject[src]

impl Hash for ValueObject[src]

impl Ord for ValueObject[src]

impl ParentClassIs for ValueObject[src]

type Parent = Object

impl<T: ObjectType> PartialEq<T> for ValueObject[src]

impl<T: ObjectType> PartialOrd<T> for ValueObject[src]

impl StaticType for ValueObject[src]

impl StructuralEq for ValueObject[src]

Auto Trait Implementations

impl RefUnwindSafe for ValueObject[src]

impl !Send for ValueObject[src]

impl !Sync for ValueObject[src]

impl Unpin for ValueObject[src]

impl UnwindSafe for ValueObject[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.