Struct conrod_core::widget::primitive::image::State[][src]

pub struct State {
    pub src_rect: Option<Rect>,
    pub image_id: Id,
}
Expand description

Unique State to be stored between updates for the Image.

Fields

src_rect: Option<Rect>

The rectangular area of the image that we wish to display.

If None, the entire image will be used.

image_id: Id

The unique identifier for the image’s associated data that will be drawn.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.