pub struct NoopPlatform { /* private fields */ }Expand description
Minimal deterministic platform for tests, embedded use, and early bootstrap.
Implementations§
Source§impl NoopPlatform
impl NoopPlatform
Sourcepub fn with_limits(limits: HostLimits) -> Self
pub fn with_limits(limits: HostLimits) -> Self
Creates a noop platform with the given host limits.
Sourcepub fn with_clock(clock: HostClock) -> Self
pub fn with_clock(clock: HostClock) -> Self
Creates a noop platform with the given clock value.
Trait Implementations§
Source§impl Clone for NoopPlatform
impl Clone for NoopPlatform
Source§fn clone(&self) -> NoopPlatform
fn clone(&self) -> NoopPlatform
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 NoopPlatform
Source§impl Debug for NoopPlatform
impl Debug for NoopPlatform
Source§impl Default for NoopPlatform
impl Default for NoopPlatform
Source§fn default() -> NoopPlatform
fn default() -> NoopPlatform
Returns the “default value” for a type. Read more
Source§impl Platform for NoopPlatform
impl Platform for NoopPlatform
Source§fn diagnostics(&self) -> &dyn DiagnosticSink
fn diagnostics(&self) -> &dyn DiagnosticSink
Returns the diagnostic sink for this platform.
Source§fn limits(&self) -> HostLimits
fn limits(&self) -> HostLimits
Returns host resource limits, defaulting to
HostLimits::default().Source§fn linebreak_start(&self, _request: LinebreakRequest<'_>)
fn linebreak_start(&self, _request: LinebreakRequest<'_>)
Called before the engine begins line break iteration for a paragraph.
Source§fn linebreak_next(&self) -> Option<i32>
fn linebreak_next(&self) -> Option<i32>
Returns the next line break position, or
None to use the built in algorithm.Auto Trait Implementations§
impl Freeze for NoopPlatform
impl RefUnwindSafe for NoopPlatform
impl Send for NoopPlatform
impl Sync for NoopPlatform
impl Unpin for NoopPlatform
impl UnsafeUnpin for NoopPlatform
impl UnwindSafe for NoopPlatform
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