mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
order derivable traits lists
Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
This commit is contained in:
parent
ab73f3d61d
commit
c5fe235112
194 changed files with 553 additions and 552 deletions
|
@ -16,13 +16,13 @@ use std::ops::Range;
|
|||
use std::usize;
|
||||
use unicode_segmentation::UnicodeSegmentation;
|
||||
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
#[derive(Clone, Copy, PartialEq)]
|
||||
pub enum Selection {
|
||||
Selected,
|
||||
NotSelected
|
||||
}
|
||||
|
||||
#[derive(JSTraceable, PartialEq, Copy, Clone, HeapSizeOf)]
|
||||
#[derive(Clone, Copy, HeapSizeOf, JSTraceable, PartialEq)]
|
||||
pub enum SelectionDirection {
|
||||
Forward,
|
||||
Backward,
|
||||
|
@ -49,7 +49,7 @@ impl From<SelectionDirection> for DOMString {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(JSTraceable, Copy, Clone, HeapSizeOf, PartialEq)]
|
||||
#[derive(Clone, Copy, HeapSizeOf, JSTraceable, PartialEq)]
|
||||
pub struct TextPoint {
|
||||
/// 0-based line number
|
||||
pub line: usize,
|
||||
|
@ -58,7 +58,7 @@ pub struct TextPoint {
|
|||
}
|
||||
|
||||
/// Encapsulated state for handling keyboard input in a single or multiline text input control.
|
||||
#[derive(JSTraceable, HeapSizeOf)]
|
||||
#[derive(HeapSizeOf, JSTraceable)]
|
||||
pub struct TextInput<T: ClipboardProvider> {
|
||||
/// Current text input content, split across lines without trailing '\n'
|
||||
lines: Vec<DOMString>,
|
||||
|
@ -96,14 +96,14 @@ impl Default for TextPoint {
|
|||
}
|
||||
|
||||
/// Control whether this control should allow multiple lines.
|
||||
#[derive(PartialEq, Eq)]
|
||||
#[derive(Eq, PartialEq)]
|
||||
pub enum Lines {
|
||||
Single,
|
||||
Multiple,
|
||||
}
|
||||
|
||||
/// The direction in which to delete a character.
|
||||
#[derive(PartialEq, Eq, Copy, Clone)]
|
||||
#[derive(Clone, Copy, Eq, PartialEq)]
|
||||
pub enum Direction {
|
||||
Forward,
|
||||
Backward
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue