pub struct ViewportSetting {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}
Fields§
§x: i32
§y: i32
§width: i32
§height: i32
Trait 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 copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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
impl Copy for ViewportSetting
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 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