pub struct LexicalFocusOrder {
pub order: String,
}Expand description
Can be given to a FocusTraversalOrder widget to use a string to assign a lexical order to
a widget subtree that is using an OrderedTraversalPolicy to define the order in which
widgets should be traversed with the keyboard.
This sorts strings using Rust’s default string comparison, which is not locale-specific.
Dart’s FocusOrder.lexical.
Fields§
§order: StringThe string that defines the lexical order to assign to the widget subtree using
FocusTraversalOrder.
Determines the placement of this widget in a sequence of widgets that defines the order in which this node is traversed by the focus policy.
Lower lexical values will be traversed first (e.g. ‘a’ comes before ‘z’).
Implementations§
Source§impl LexicalFocusOrder
impl LexicalFocusOrder
Sourcepub fn new(order: impl Into<String>) -> LexicalFocusOrder
pub fn new(order: impl Into<String>) -> LexicalFocusOrder
Creates an object that describes a focus traversal order lexically.
Trait Implementations§
Source§impl Clone for LexicalFocusOrder
impl Clone for LexicalFocusOrder
Source§impl Debug for LexicalFocusOrder
impl Debug for LexicalFocusOrder
impl Eq for LexicalFocusOrder
Source§impl FocusOrder for LexicalFocusOrder
impl FocusOrder for LexicalFocusOrder
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased order, for the downcast
do_compare
does.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
FocusOrder.debugFillProperties, from Diagnosticable: a subclass adds its own.Source§fn do_compare(&self, other: &dyn FocusOrder) -> Ordering
fn do_compare(&self, other: &dyn FocusOrder) -> Ordering
The implementation called by
compare_to to compare orders. Read moreSource§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
FocusOrder.toStringShort: the type and the identity.Source§fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
Dart’s
FocusOrder.toDiagnosticsNode(name:), from Diagnosticable.Source§fn diagnostic_string(&self) -> String
fn diagnostic_string(&self) -> String
Dart’s
Diagnosticable.toString, which a property holding an order prints.Source§fn compare_to(&self, other: &dyn FocusOrder) -> Ordering
fn compare_to(&self, other: &dyn FocusOrder) -> Ordering
Compares this object to another
FocusOrder. Read moreSource§impl PartialEq for LexicalFocusOrder
impl PartialEq for LexicalFocusOrder
impl StructuralPartialEq for LexicalFocusOrder
Auto Trait Implementations§
impl Forget for LexicalFocusOrder
impl Freeze for LexicalFocusOrder
impl Move for LexicalFocusOrder
impl RefUnwindSafe for LexicalFocusOrder
impl Send for LexicalFocusOrderwhere
RawVecInner: Send,
impl Sync for LexicalFocusOrderwhere
RawVecInner: Sync,
impl Unpin for LexicalFocusOrder
impl UnsafeUnpin for LexicalFocusOrder
impl UnwindSafe for LexicalFocusOrderwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.