[][src]Struct luminance::state::GraphicsState

pub struct GraphicsState { /* fields omitted */ }

The graphics state.

This type represents the current state of a given graphics context. It acts as a forward-gate to all the exposed features from the low-level API but adds a small cache layer over it to prevent from issuing the same API call (with the same parameters).

Methods

impl GraphicsState[src]

pub fn new() -> Result<Self, StateQueryError>[src]

Create a new GraphicsState.

Note: keep in mind you can create only one per thread. However, if you’re building without standard library, this function will always return successfully. You have to take extra care in this case.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]