pub enum FlowSemantic {
Unknown,
LocalCoordinates,
AbsoluteCoordinates,
LogicalPixels,
PhysicalPixels,
}Expand description
Normalized semantic labels used by tooling when string contracts are too coarse to explain a mismatch (for example local vs absolute coordinates). 调试工具使用的规范化语义标签,避免仅凭字符串无法解释坐标域差异。
Variants§
Unknown
Label no table entry knows; only literal equality is meaningful. 语义表不认识的标签;只有字面相等才有意义。
LocalCoordinates
Coordinates relative to the parent node. 相对于父节点的坐标。
AbsoluteCoordinates
Coordinates in the host’s absolute space. 宿主绝对空间中的坐标。
LogicalPixels
Device-independent pixel units. 设备无关的像素单位。
PhysicalPixels
Device pixel units. 设备像素单位。
Trait Implementations§
Source§impl Clone for FlowSemantic
impl Clone for FlowSemantic
Source§fn clone(&self) -> FlowSemantic
fn clone(&self) -> FlowSemantic
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 FlowSemantic
Source§impl Debug for FlowSemantic
impl Debug for FlowSemantic
impl Eq for FlowSemantic
Source§impl PartialEq for FlowSemantic
impl PartialEq for FlowSemantic
impl StructuralPartialEq for FlowSemantic
Auto Trait Implementations§
impl Freeze for FlowSemantic
impl RefUnwindSafe for FlowSemantic
impl Send for FlowSemantic
impl Sync for FlowSemantic
impl Unpin for FlowSemantic
impl UnsafeUnpin for FlowSemantic
impl UnwindSafe for FlowSemantic
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