pub struct ViewOutput {
pub view: ViewTransform,
pub fit: ViewTransform,
pub min_zoom: f64,
pub max_zoom: f64,
}Expand description
Complete finite approved values and gesture hints derived by Adam.
min_zoom <= view.k <= max_zoom; the maximum can exceed eight when fit does.
§Examples
let view = ViewTransform { x: 0.0, y: 50.0, k: 2.0 };
let output = ViewOutput { view, fit: view, min_zoom: 2.0, max_zoom: 8.0 };
assert!(output.min_zoom <= output.view.k && output.view.k <= output.max_zoom);Fields§
§view: ViewTransformThe conformed view to render.
fit: ViewTransformThe fit target for the current geometry.
min_zoom: f64The fit-derived minimum scale.
max_zoom: f64The sheet’s effective maximum scale.
Trait Implementations§
Source§impl Clone for ViewOutput
impl Clone for ViewOutput
Source§fn clone(&self) -> ViewOutput
fn clone(&self) -> ViewOutput
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 ViewOutput
Source§impl Debug for ViewOutput
impl Debug for ViewOutput
Source§impl<'de> Deserialize<'de> for ViewOutput
impl<'de> Deserialize<'de> for ViewOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ViewOutput
impl PartialEq for ViewOutput
Source§impl Serialize for ViewOutput
impl Serialize for ViewOutput
impl StructuralPartialEq for ViewOutput
Auto Trait Implementations§
impl Freeze for ViewOutput
impl RefUnwindSafe for ViewOutput
impl Send for ViewOutput
impl Sync for ViewOutput
impl Unpin for ViewOutput
impl UnsafeUnpin for ViewOutput
impl UnwindSafe for ViewOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.