pub struct ColumnDefiniton { /* private fields */ }Implementations§
Source§impl ColumnDefiniton
impl ColumnDefiniton
Sourcepub fn new<S: ToString>(name: S) -> Self
pub fn new<S: ToString>(name: S) -> Self
Examples found in repository?
examples/datagrid.rs (line 77)
60 fn default() -> Self {
61 Self {
62 rows: [
63 ExampleRow::new("a", 1, true, 4.5),
64 ExampleRow::new("bb", 31, false, 42.25),
65 ExampleRow::new("ccc", 123, true, 4.265),
66 ExampleRow::new("d", 1311, true, 24.125),
67 ExampleRow::new("aa", 122, true, 4.5),
68 ExampleRow::new("bbbb", 3281, false, 42.25),
69 ExampleRow::new("cccc", 123, false, 4.265),
70 ExampleRow::new("dd", 13, true, 34.125),
71 ExampleRow::new("aaa", 19, false, 9.5),
72 ExampleRow::new("bbb", 341, false, 11.25),
73 ExampleRow::new("cccccc", 1223, true, 7.265),
74 ExampleRow::new("ddd", 13111, true, 12.125),
75 ],
76 defs: [
77 ColumnDefiniton::new("A"),
78 ColumnDefiniton::new("B"),
79 ColumnDefiniton::new("C"),
80 ColumnDefiniton::new("D"),
81 ],
82 }
83 }Trait Implementations§
Source§impl Clone for ColumnDefiniton
impl Clone for ColumnDefiniton
Source§fn clone(&self) -> ColumnDefiniton
fn clone(&self) -> ColumnDefiniton
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 moreSource§impl PartialEq for ColumnDefiniton
impl PartialEq for ColumnDefiniton
impl StructuralPartialEq for ColumnDefiniton
Auto Trait Implementations§
impl Freeze for ColumnDefiniton
impl RefUnwindSafe for ColumnDefiniton
impl Send for ColumnDefiniton
impl Sync for ColumnDefiniton
impl Unpin for ColumnDefiniton
impl UnsafeUnpin for ColumnDefiniton
impl UnwindSafe for ColumnDefiniton
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