Enum druid_shell::text::Direction [−][src]
pub enum Direction {
Left,
Right,
Upstream,
Downstream,
}
Expand description
Indicates a horizontal direction in the text.
Variants
The direction visually to the left.
This may be byte-wise forwards or backwards in the document, depending on the text direction around the position being moved.
The direction visually to the right.
This may be byte-wise forwards or backwards in the document, depending on the text direction around the position being moved.
Byte-wise backwards in the document.
In a left-to-right context, this value is the same as Left
.
Byte-wise forwards in the document.
In a left-to-right context, this value is the same as Right
.
Implementations
Returns true
if this direction is byte-wise backwards for
the provided WritingDirection
.
The provided direction must not be WritingDirection::Natural
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Direction
impl UnwindSafe for Direction
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn round_from(x: T) -> T
pub fn round_from(x: T) -> T
Performs the conversion.
pub fn round_into(self) -> U
pub fn round_into(self) -> U
Performs the conversion.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more