Skip to main content

SimulatedNativeRoute

Struct SimulatedNativeRoute 

Source
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

Source

pub fn new() -> Self

Create a new simulated native route with default capabilities.

Source

pub fn with_capabilities(capabilities: ShapingRouteCapabilities) -> Self

Create a simulated native route with explicit capabilities.

Source

pub fn register_fallback(&mut self, rule: SimulatedFallbackRule)

Register a fallback rule for characters falling within range.

Trait Implementations§

Source§

impl Default for SimulatedNativeRoute

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl NativeShapingRoute for SimulatedNativeRoute

Source§

fn route_kind(&self) -> ShapingRouteKind

Return the route classification.
Source§

fn capabilities(&self) -> ShapingRouteCapabilities

Return declared capability parameters and operational limits.
Source§

fn shape_run( &self, req: &NativeShapingRequest<'_>, ) -> Result<OwnedTextRun, NativeShapingError>

Shape a slice of text into an owned text run.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.