Struct Zoom
pub struct Zoom {
pub factor: f32,
pub smooth: bool,
pub turn: f32,
}Expand description
The zoom a native mod asks for (native_zoom): the factor (1 is none), eased through the
field of view like the spyglass when smooth, and the scale of mouse turning.
Fields§
§factor: f32The zoom as a multiple of the normal view; 1 is no zoom.
smooth: boolWhether the camera eases into the zoom.
turn: f32Scale applied to mouse turning while zoomed.
Trait Implementations§
impl Copy for Zoom
impl StructuralPartialEq for Zoom
Auto Trait Implementations§
impl Freeze for Zoom
impl RefUnwindSafe for Zoom
impl Send for Zoom
impl Sync for Zoom
impl Unpin for Zoom
impl UnsafeUnpin for Zoom
impl UnwindSafe for Zoom
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