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

pub struct Closure(_);

Methods

impl Closure[src]

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

pub fn new_local<F: Fn(&[Value]) -> Option<Value> + '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<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[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: ToValue + SetValue + Send + ?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.