pub struct Div {
pub id: String,
pub margin_left: usize,
pub margin_right: usize,
pub margin_top: usize,
pub margin_bottom: usize,
pub divs_child: Vec<Div>,
}
Fields§
§id: String
§margin_left: usize
§margin_right: usize
§margin_top: usize
§margin_bottom: usize
§divs_child: Vec<Div>
Implementations§
Source§impl Div
impl Div
pub fn new(id: impl Into<String>) -> Self
pub fn margin_left(self, s: usize) -> Self
pub fn margin_right(self, s: usize) -> Self
pub fn margin_top(self, s: usize) -> Self
pub fn margin_bottom(self, s: usize) -> Self
pub fn add_child(self, s: Div) -> Self
Trait Implementations§
Source§impl ElementReader for Div
impl ElementReader for Div
fn read<R: Read>( r: &mut EventReader<R>, attrs: &[OwnedAttribute], ) -> Result<Self, ReaderError>
impl StructuralPartialEq for Div
Auto Trait Implementations§
impl Freeze for Div
impl RefUnwindSafe for Div
impl Send for Div
impl Sync for Div
impl Unpin for Div
impl UnwindSafe for Div
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