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
Methods
Section titled “Methods”child_path
Section titled “child_path”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
expanded_name_path
Section titled “expanded_name_path”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
source_bytes
Section titled “source_bytes”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
try_new
Section titled “try_new”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
with_expanded_name_path
Section titled “with_expanded_name_path”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
Trait implementations
Section titled “Trait implementations”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
deserialize
Section titled “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
serialize
Section titled “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