Struct glib::closure::Closure[][src]

pub struct Closure(_);

Implementations

impl Closure[src]

pub fn new<F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static>(
    callback: F
) -> Self
[src]

pub unsafe fn new_unsafe<F: Fn(&[Value]) -> Option<Value>>(callback: F) -> Self[src]

pub fn invoke(&self, values: &[&dyn ToValue]) -> Option<Value>[src]

Trait Implementations

impl Clone for Closure[src]

impl Debug for Closure[src]

impl Eq for Closure[src]

impl Hash for Closure[src]

impl Ord for Closure[src]

impl PartialEq<Closure> for Closure[src]

impl PartialOrd<Closure> for Closure[src]

impl Send for Closure[src]

impl StaticType for Closure[src]

impl StructuralEq for Closure[src]

impl StructuralPartialEq for Closure[src]

impl Sync for Closure[src]

Auto Trait Implementations

impl RefUnwindSafe for Closure

impl Unpin for Closure

impl UnwindSafe for Closure

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<T> From<T> for T[src]

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

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: SetValue + Send + ToValue + ?Sized
[src]

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

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.