breadthread 0.1.3

GUI abstraction; adds a thread controller that helps get some bread
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// MIT/Apache2 License

use core::num::NonZeroUsize;

/// Represents a directive that can be sent to a bread thread.
pub trait Directive: Send + 'static {
    /// The type that contains the pointers, along with a `usize` that uniquely identifies the type of the
    /// pointer.
    type Pointers: IntoIterator<Item = (NonZeroUsize, usize)>;
    /// Get a list of pointers contained within this directive.
    fn pointers(&self) -> Self::Pointers;
}