Skip to content
YosoiDocs

TreeCoordinate

yosoi::locators::TreeCoordinate

pub struct TreeCoordinate

Native coordinate for an HTML or XML tree node.

XML coordinates may include expanded-name segments, which use namespace URIs rather than source prefix spelling.

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:82

SDK re-export: Source: crates/yosoi/src/locators.rs:10

pub fn child_path(&self) -> &[u32]

Borrows the nonempty one-based sequence of child indices.

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:128

pub fn expanded_name_path(&self) -> Option<&[yosoi::locators::ExpandedNamePathSegment]>

Borrows optional namespace-qualified XML path evidence without resolving it.

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:136

pub const fn source_bytes(&self) -> Option<yosoi::locators::ByteRange>

Returns exact source-payload byte evidence, absent when unavailable.

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:132

pub fn try_new(child_path: Vec<u32>, source_bytes: Option<yosoi::locators::ByteRange>) -> Result<Self, yosoi::locators::CoordinateError>

Owns a nonempty one-based child path with optional exact source-byte evidence.

Returns [CoordinateError::InvalidTreeChildPath] for an empty path or any zero index. It does not verify tree membership or byte bounds.

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:94

pub fn with_expanded_name_path(child_path: Vec<u32>, source_bytes: Option<yosoi::locators::ByteRange>, expanded_name_path: Vec<yosoi::locators::ExpandedNamePathSegment>) -> Result<Self, yosoi::locators::CoordinateError>

Owns child-path and XML expanded-name evidence for the same source-tree location.

Returns [CoordinateError] for an invalid child path or empty expanded-name path. Correspondence between the paths and source bytes is the caller’s responsibility; this constructor does not inspect document contents.

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:111

Clone
fn clone(&self) -> yosoi::locators::TreeCoordinate

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:81

Debug
fn fmt(&self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:81

Deserialize
fn deserialize<D>(deserializer: D) -> Result<Self, <D as >::Error> where D: Deserializer<'de>

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:142

Hash
fn hash<__H: $crate::hash::Hasher>(&self, state: &mut __H)

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:81

PartialEq
fn eq(&self, other: &yosoi::locators::TreeCoordinate) -> bool

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:81

Serialize
fn serialize<__S>(&self, __serializer: __S) -> _serde::__private229::Result<<__S as >::Ok, <__S as >::Error> where __S: _serde::Serializer

Source: crates/yosoi/src/internal/documents/outcome_tree_coordinates.rs:81