pub enum LayoutBoundaryHint {
Auto,
PreferCpu,
PreferGpu,
ForceCpu,
}Expand description
Author- or framework-supplied placement hint attached to a LayoutBoundary.
Variants§
Auto
Let SubtreePartitionPlanner automatically decide CPU vs GPU lane using size and style predicates.
PreferCpu
Prefer CPU execution unless overridden by global hardware compute policy.
PreferGpu
Prefer GPU compute layout whenever hardware is available and style predicates pass.
ForceCpu
Pin this subtree strictly to CPU layout (for example, rich wrapping prose or IME inputs).
Trait Implementations§
Source§impl Clone for LayoutBoundaryHint
impl Clone for LayoutBoundaryHint
impl Copy for LayoutBoundaryHint
Source§impl Debug for LayoutBoundaryHint
impl Debug for LayoutBoundaryHint
Source§impl Default for LayoutBoundaryHint
impl Default for LayoutBoundaryHint
impl Eq for LayoutBoundaryHint
Source§impl Hash for LayoutBoundaryHint
impl Hash for LayoutBoundaryHint
Source§impl Ord for LayoutBoundaryHint
impl Ord for LayoutBoundaryHint
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LayoutBoundaryHint
impl PartialEq for LayoutBoundaryHint
Source§impl PartialOrd for LayoutBoundaryHint
impl PartialOrd for LayoutBoundaryHint
impl StructuralPartialEq for LayoutBoundaryHint
Auto Trait Implementations§
impl Forget for LayoutBoundaryHint
impl Freeze for LayoutBoundaryHint
impl Move for LayoutBoundaryHint
impl RefUnwindSafe for LayoutBoundaryHint
impl Send for LayoutBoundaryHint
impl Sync for LayoutBoundaryHint
impl Unpin for LayoutBoundaryHint
impl UnsafeUnpin for LayoutBoundaryHint
impl UnwindSafe for LayoutBoundaryHint
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