[][src]Struct fbxcel::pull_parser::SyntacticPosition

pub struct SyntacticPosition { /* fields omitted */ }

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]

impl Clone for 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]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.