[go: up one dir, main page]

Struct glib::Value

source ·
pub struct Value { /* private fields */ }

Implementations§

source§

impl Value

source

pub unsafe fn new() -> Value

source

pub fn init(&mut self, _type: Type)

source

pub fn reset(&mut self)

source

pub unsafe fn unset(&mut self)

source

pub fn strdup_value_contents(&mut self) -> Option<String>

source

pub unsafe fn set_boolean(&mut self, v_boolean: bool)

source

pub unsafe fn get_boolean(&self) -> bool

source

pub unsafe fn set_schar(&mut self, v_char: i8)

source

pub unsafe fn get_schar(&self) -> i8

source

pub unsafe fn set_uchar(&mut self, v_uchar: u8)

source

pub unsafe fn get_uchar(&self) -> u8

source

pub unsafe fn set_int(&mut self, v_int: i32)

source

pub unsafe fn get_int(&self) -> i32

source

pub unsafe fn set_uint(&mut self, v_uint: u32)

source

pub unsafe fn get_uint(&self) -> u32

source

pub unsafe fn set_long(&mut self, v_long: i64)

source

pub unsafe fn get_long(&self) -> i64

source

pub unsafe fn set_ulong(&mut self, v_ulong: u64)

source

pub unsafe fn get_ulong(&self) -> u64

source

pub unsafe fn set_int64(&mut self, v_int64: i64)

source

pub unsafe fn get_int64(&self) -> i64

source

pub unsafe fn set_uint64(&mut self, v_uint64: u64)

source

pub unsafe fn get_uint64(&self) -> u64

source

pub unsafe fn set_float(&mut self, v_float: f32)

source

pub unsafe fn get_float(&self) -> f32

source

pub unsafe fn set_double(&mut self, v_double: f64)

source

pub unsafe fn get_double(&self) -> f64

source

pub unsafe fn set_string(&mut self, v_string: &str)

source

pub unsafe fn get_string(&self) -> Option<String>

source

pub unsafe fn set_boxed<T>(&mut self, v_box: &T)

source

pub unsafe fn get_boxed<'r, T>(&'r self) -> &'r T

source

pub unsafe fn set_pointer<T>(&mut self, v_pointer: &T)

source

pub unsafe fn get_pointer<'r, T>(&'r self) -> &'r T

source

pub unsafe fn set_object<T>(&mut self, v_object: &T)

source

pub unsafe fn get_object<'r, T>(&'r self) -> &'r T

source

pub unsafe fn set_gtype(&mut self, v_gtype: Type)

source

pub unsafe fn get_gtype(&self) -> Type

source

pub unsafe fn set<T: ValuePublic>(&mut self, val: &T)

source

pub unsafe fn get<T: ValuePublic>(&self) -> T

source

pub fn compatible(src_type: Type, dest_type: Type) -> bool

source

pub fn transformable(src_type: Type, dest_type: Type) -> bool

source

pub fn as_ptr(&self) -> *const GValue

source

pub fn as_mut_ptr(&mut self) -> *mut GValue

Trait Implementations§

source§

impl Drop for Value

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl Freeze for Value

§

impl RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl UnwindSafe for Value

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.