pub struct CanvasRuntime { /* private fields */ }Implementations§
Source§impl CanvasRuntime
impl CanvasRuntime
pub fn rebuild(document: &CanvasDocument) -> Self
pub fn rebuild_with_kind_registry( document: &CanvasDocument, kind_registry: &CanvasKindRegistry, ) -> Self
pub fn rebuild_with_router<R>(document: &CanvasDocument, router: &R) -> Selfwhere
R: CanvasEdgeRouter + ?Sized,
pub fn rebuild_with_router_and_kind_registry<R>(
document: &CanvasDocument,
router: &R,
kind_registry: &CanvasKindRegistry,
) -> Selfwhere
R: CanvasEdgeRouter + ?Sized,
pub fn apply_committed_mutation( &mut self, document: &CanvasDocument, committed: &CanvasCommittedMutation, )
pub fn apply_committed_mutation_with_kind_registry( &mut self, document: &CanvasDocument, committed: &CanvasCommittedMutation, kind_registry: &CanvasKindRegistry, )
pub fn apply_committed_mutation_with_router<R>(
&mut self,
document: &CanvasDocument,
committed: &CanvasCommittedMutation,
router: &R,
)where
R: CanvasEdgeRouter + ?Sized,
pub fn apply_committed_mutation_with_router_and_kind_registry<R>(
&mut self,
document: &CanvasDocument,
committed: &CanvasCommittedMutation,
router: &R,
kind_registry: &CanvasKindRegistry,
)where
R: CanvasEdgeRouter + ?Sized,
pub fn edge_geometry(&self, id: &EdgeId) -> Option<&CanvasResolvedEdgeGeometry>
pub fn graph<'a>( &'a self, document: &'a CanvasDocument, ) -> CanvasIndexedGraph<'a>
pub fn query( &self, viewport: Bounds<Pixels>, ) -> impl Iterator<Item = &HitRecord>
pub fn query_with_options( &self, viewport: Bounds<Pixels>, options: HitOptions, ) -> impl Iterator<Item = &HitRecord>
pub fn hit_test( &self, point: Point<Pixels>, options: HitOptions, ) -> impl Iterator<Item = &HitRecord>
pub fn precise_hit_test<'a>( &'a self, document: &'a CanvasDocument, point: Point<Pixels>, options: HitOptions, ) -> impl Iterator<Item = &'a HitRecord> + 'a
pub fn precise_hit_test_with_kind_registry<'a>( &'a self, document: &'a CanvasDocument, kind_registry: &'a CanvasKindRegistry, point: Point<Pixels>, options: HitOptions, ) -> impl Iterator<Item = &'a HitRecord> + 'a
pub fn precise_hit_test_with_facts<'a, R>(
&'a self,
facts: CanvasGeometryFacts<'a, R>,
point: Point<Pixels>,
options: HitOptions,
) -> impl Iterator<Item = &'a HitRecord> + 'awhere
R: CanvasEdgeRouter + 'a,
Trait Implementations§
Source§impl Clone for CanvasRuntime
impl Clone for CanvasRuntime
Source§fn clone(&self) -> CanvasRuntime
fn clone(&self) -> CanvasRuntime
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 moreSource§impl Debug for CanvasRuntime
impl Debug for CanvasRuntime
Source§impl Default for CanvasRuntime
impl Default for CanvasRuntime
Source§fn default() -> CanvasRuntime
fn default() -> CanvasRuntime
Returns the “default value” for a type. Read more
Source§impl PartialEq for CanvasRuntime
impl PartialEq for CanvasRuntime
Source§fn eq(&self, other: &CanvasRuntime) -> bool
fn eq(&self, other: &CanvasRuntime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CanvasRuntime
Auto Trait Implementations§
impl Freeze for CanvasRuntime
impl RefUnwindSafe for CanvasRuntime
impl Send for CanvasRuntime
impl Sync for CanvasRuntime
impl Unpin for CanvasRuntime
impl UnsafeUnpin for CanvasRuntime
impl UnwindSafe for CanvasRuntime
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().