pub struct ViewportSetting {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}Fields§
§x: i32§y: i32§width: i32§height: i32Trait Implementations§
Source§impl CachedSettings for ViewportSetting
impl CachedSettings for ViewportSetting
fn set(gl: &Gl, value: &Self)
fn read_cached(cache: &impl Deref<Target = SettingsCache>) -> Self
fn write_cached(cache: &mut impl DerefMut<Target = SettingsCache>, value: &Self)
Source§impl Clone for ViewportSetting
impl Clone for ViewportSetting
Source§fn clone(&self) -> ViewportSetting
fn clone(&self) -> ViewportSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ViewportSetting
Source§impl Debug for ViewportSetting
impl Debug for ViewportSetting
Source§impl Default for ViewportSetting
impl Default for ViewportSetting
Source§fn default() -> ViewportSetting
fn default() -> ViewportSetting
Returns the “default value” for a type. Read more
Source§impl PartialEq for ViewportSetting
impl PartialEq for ViewportSetting
Source§fn eq(&self, other: &ViewportSetting) -> bool
fn eq(&self, other: &ViewportSetting) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ViewportSetting
Auto Trait Implementations§
impl Freeze for ViewportSetting
impl RefUnwindSafe for ViewportSetting
impl Send for ViewportSetting
impl Sync for ViewportSetting
impl Unpin for ViewportSetting
impl UnsafeUnpin for ViewportSetting
impl UnwindSafe for ViewportSetting
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more