pub struct TimelineMetrics {
pub track_width: f64,
pub px_per_ms: f64,
pub visible_ms: f64,
pub safe_zoom: f64,
pub clamped_pan_ms: f64,
pub max_pan_ms: f64,
pub visible_start_ms: f64,
pub visible_end_ms: f64,
pub ticks: Vec<f64>,
}Expand description
Derived pixel/time geometry for one render of a timeline.
Fields§
§track_width: f64§px_per_ms: f64§visible_ms: f64§safe_zoom: f64§clamped_pan_ms: f64§max_pan_ms: f64§visible_start_ms: f64§visible_end_ms: f64§ticks: Vec<f64>Trait Implementations§
Source§impl Clone for TimelineMetrics
impl Clone for TimelineMetrics
Source§fn clone(&self) -> TimelineMetrics
fn clone(&self) -> TimelineMetrics
Returns a duplicate 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 TimelineMetrics
impl Debug for TimelineMetrics
Source§impl From<TimelineMetrics> for JsValuewhere
TimelineMetrics: Serialize,
impl From<TimelineMetrics> for JsValuewhere
TimelineMetrics: Serialize,
Source§fn from(value: TimelineMetrics) -> Self
fn from(value: TimelineMetrics) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for &TimelineMetricswhere
TimelineMetrics: Serialize,
impl IntoWasmAbi for &TimelineMetricswhere
TimelineMetrics: Serialize,
Source§impl IntoWasmAbi for TimelineMetricswhere
TimelineMetrics: Serialize,
impl IntoWasmAbi for TimelineMetricswhere
TimelineMetrics: Serialize,
Source§impl OptionIntoWasmAbi for TimelineMetricswhere
TimelineMetrics: Serialize,
impl OptionIntoWasmAbi for TimelineMetricswhere
TimelineMetrics: Serialize,
Source§impl Serialize for TimelineMetrics
impl Serialize for TimelineMetrics
Source§impl Tsify for TimelineMetrics
impl Tsify for TimelineMetrics
const DECL: &'static str = "/**\n * Derived pixel/time geometry for one render of a timeline.\n */\nexport interface TimelineMetrics {\n trackWidth: number;\n pxPerMs: number;\n visibleMs: number;\n safeZoom: number;\n clampedPanMs: number;\n maxPanMs: number;\n visibleStartMs: number;\n visibleEndMs: number;\n ticks: number[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Source§impl VectorIntoWasmAbi for TimelineMetricswhere
TimelineMetrics: Serialize,
impl VectorIntoWasmAbi for TimelineMetricswhere
TimelineMetrics: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for TimelineMetrics
impl WasmDescribe for TimelineMetrics
Auto Trait Implementations§
impl Freeze for TimelineMetrics
impl RefUnwindSafe for TimelineMetrics
impl Send for TimelineMetrics
impl Sync for TimelineMetrics
impl Unpin for TimelineMetrics
impl UnsafeUnpin for TimelineMetrics
impl UnwindSafe for TimelineMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.