Struct pax_manifest::NodeLocation
source · pub struct NodeLocation {
pub type_id: TypeId,
pub tree_location: TreeLocation,
pub index: TreeIndexPosition,
}
Fields§
§type_id: TypeId
§tree_location: TreeLocation
§index: TreeIndexPosition
Implementations§
source§impl NodeLocation
impl NodeLocation
pub fn new( type_id: TypeId, location: TreeLocation, index: TreeIndexPosition ) -> Self
pub fn get_tree_location(&self) -> &TreeLocation
pub fn get_type_id(&self) -> &TypeId
pub fn root(type_id: TypeId) -> Self
pub fn parent(type_id: TypeId, parent: TemplateNodeId) -> Self
pub fn set_index(&mut self, index: TreeIndexPosition)
Trait Implementations§
source§impl Clone for NodeLocation
impl Clone for NodeLocation
source§fn clone(&self) -> NodeLocation
fn clone(&self) -> NodeLocation
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 NodeLocation
impl Debug for NodeLocation
source§impl Default for NodeLocation
impl Default for NodeLocation
source§fn default() -> NodeLocation
fn default() -> NodeLocation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NodeLocation
impl<'de> Deserialize<'de> for NodeLocation
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
source§impl Ord for NodeLocation
impl Ord for NodeLocation
source§impl PartialEq for NodeLocation
impl PartialEq for NodeLocation
source§fn eq(&self, other: &NodeLocation) -> bool
fn eq(&self, other: &NodeLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NodeLocation
impl PartialOrd for NodeLocation
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for NodeLocation
impl Serialize for NodeLocation
impl Eq for NodeLocation
impl StructuralPartialEq for NodeLocation
Auto Trait Implementations§
impl Freeze for NodeLocation
impl RefUnwindSafe for NodeLocation
impl Send for NodeLocation
impl Sync for NodeLocation
impl Unpin for NodeLocation
impl UnwindSafe for NodeLocation
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
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.