pub struct SimulatedNativeRoute { /* private fields */ }Expand description
Headless simulated native shaping route for test qualification.
Implements NativeShapingRoute entirely in safe Rust with zero foreign or
platform runtime dependencies, enabling full qualification of fallback font
preservation, context limits, and cluster mapping.
Implementations§
Source§impl SimulatedNativeRoute
impl SimulatedNativeRoute
Sourcepub fn with_capabilities(capabilities: ShapingRouteCapabilities) -> Self
pub fn with_capabilities(capabilities: ShapingRouteCapabilities) -> Self
Create a simulated native route with explicit capabilities.
Sourcepub fn register_fallback(&mut self, rule: SimulatedFallbackRule)
pub fn register_fallback(&mut self, rule: SimulatedFallbackRule)
Register a fallback rule for characters falling within range.
Trait Implementations§
Source§impl Default for SimulatedNativeRoute
impl Default for SimulatedNativeRoute
Source§impl NativeShapingRoute for SimulatedNativeRoute
impl NativeShapingRoute for SimulatedNativeRoute
Source§fn route_kind(&self) -> ShapingRouteKind
fn route_kind(&self) -> ShapingRouteKind
Return the route classification.
Source§fn capabilities(&self) -> ShapingRouteCapabilities
fn capabilities(&self) -> ShapingRouteCapabilities
Return declared capability parameters and operational limits.
Source§fn shape_run(
&self,
req: &NativeShapingRequest<'_>,
) -> Result<OwnedTextRun, NativeShapingError>
fn shape_run( &self, req: &NativeShapingRequest<'_>, ) -> Result<OwnedTextRun, NativeShapingError>
Shape a slice of text into an owned text run.
Auto Trait Implementations§
impl Freeze for SimulatedNativeRoute
impl RefUnwindSafe for SimulatedNativeRoute
impl Send for SimulatedNativeRoute
impl Sync for SimulatedNativeRoute
impl Unpin for SimulatedNativeRoute
impl UnsafeUnpin for SimulatedNativeRoute
impl UnwindSafe for SimulatedNativeRoute
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