Type Alias freya::prelude::WindowCallback

source ·
pub type WindowCallback = Arc<Box<fn(_: &mut Window), Global>, Global>;

Aliased Type§

struct WindowCallback { /* private fields */ }

Trait Implementations§

1.0.0 · source§

impl<T> Default for Arc<T, Global>where T: Default,

source§

fn default() -> Arc<T, Global>

Creates a new Arc<T>, with the Default value for T.

Examples
use std::sync::Arc;

let x: Arc<i32> = Default::default();
assert_eq!(*x, 0);
1.0.0 · source§

impl<T, A> Deref for Arc<T, A>where A: Allocator, T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.