pub struct ElementCell {
pub name: String,
pub props: Vec<Prop>,
pub children: Vec<DataCell>,
}
Fields§
§name: String
§props: Vec<Prop>
§children: Vec<DataCell>
Implementations§
Source§impl ElementCell
impl ElementCell
pub fn push_attribute(&mut self, line: &str)
pub fn add_attribute(tree: &mut DataCell, cell_id: usize, prop_line: &str)
pub fn add_existing_cell( add_to: &mut DataCell, parent_id: usize, cell: &DataCell, )
pub fn move_cell( tree: &mut DataCell, (cell_to_move_parent_id, cell_to_move_id): (usize, usize), move_to: usize, )
pub fn move_children(tree: &mut DataCell, cell: usize, move_to: usize)
Trait Implementations§
Source§impl Cell<&str> for ElementCell
impl Cell<&str> for ElementCell
Source§impl Clone for ElementCell
impl Clone for ElementCell
Source§fn clone(&self) -> ElementCell
fn clone(&self) -> ElementCell
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ElementCell
impl Debug for ElementCell
Source§impl Default for ElementCell
impl Default for ElementCell
Source§fn default() -> ElementCell
fn default() -> ElementCell
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ElementCell
impl<'de> Deserialize<'de> for ElementCell
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ElementCell
impl RefUnwindSafe for ElementCell
impl Send for ElementCell
impl Sync for ElementCell
impl Unpin for ElementCell
impl UnwindSafe for ElementCell
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