[−][src]Struct fbxcel::pull_parser::SyntacticPosition
Syntactic position.
This contains not only byte-position, but also additional information such as node path and attribute index.
This type is implemented based on FBX 7.4 data structure, and may change in future if FBX syntax has breaking changes.
Methods
impl SyntacticPosition
[src]
pub fn byte_pos(&self) -> u64
[src]
Returns the byte position.
pub fn component_byte_pos(&self) -> u64
[src]
Beginning the byte position of the node or attribute.
pub fn node_path(&self) -> &[(usize, String)]
[src]
Returns the node path.
This is a vector of pairs of node indices in siblings (i.e. the number of preceding siblings) and node names.
pub fn attribute_index(&self) -> Option<usize>
[src]
Node attribute index (if the position points an attribute).
Trait Implementations
impl PartialEq<SyntacticPosition> for SyntacticPosition
[src]
fn eq(&self, other: &SyntacticPosition) -> bool
[src]
fn ne(&self, other: &SyntacticPosition) -> bool
[src]
impl Clone for SyntacticPosition
[src]
fn clone(&self) -> SyntacticPosition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for SyntacticPosition
[src]
impl Debug for SyntacticPosition
[src]
impl Hash for SyntacticPosition
[src]
Auto Trait Implementations
impl Send for SyntacticPosition
impl Sync for SyntacticPosition
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,