pub struct ElementOrigin {
pub name: String,
pub path: Vec<usize>,
pub id: Option<String>,
pub position: Position,
}Expand description
A containing element, including anonymous elements and their source position.
Fields§
§name: String§path: Vec<usize>§id: Option<String>§position: PositionTrait Implementations§
Source§impl Clone for ElementOrigin
impl Clone for ElementOrigin
Source§fn clone(&self) -> ElementOrigin
fn clone(&self) -> ElementOrigin
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 Debug for ElementOrigin
impl Debug for ElementOrigin
impl Eq for ElementOrigin
Source§impl PartialEq for ElementOrigin
impl PartialEq for ElementOrigin
Source§fn eq(&self, other: &ElementOrigin) -> bool
fn eq(&self, other: &ElementOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ElementOrigin
impl Serialize for ElementOrigin
impl StructuralPartialEq for ElementOrigin
Auto Trait Implementations§
impl Freeze for ElementOrigin
impl RefUnwindSafe for ElementOrigin
impl Send for ElementOrigin
impl Sync for ElementOrigin
impl Unpin for ElementOrigin
impl UnsafeUnpin for ElementOrigin
impl UnwindSafe for ElementOrigin
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