Skip to main content

FullName

Trait FullName 

Source
pub trait FullName<'pr> {
    // Required method
    fn full_name_parts(&self) -> Result<Vec<&'pr [u8]>, ConstantPathError>;

    // Provided method
    fn full_name(&self) -> Result<Vec<u8>, ConstantPathError> { ... }
}
Expand description

Trait for nodes that can compute their full constant name.

Implemented by constant-related nodes (ConstantReadNode, ConstantWriteNode, ConstantTargetNode, ConstantPathNode, and ConstantPathTargetNode).

Required Methods§

Source

fn full_name_parts(&self) -> Result<Vec<&'pr [u8]>, ConstantPathError>

Returns the list of parts for the full name of this constant.

§Errors

Returns ConstantPathError if the path contains dynamic parts or error recovery nodes.

Provided Methods§

Source

fn full_name(&self) -> Result<Vec<u8>, ConstantPathError>

Returns the full name of this constant.

§Errors

Returns ConstantPathError if the path contains dynamic parts or error recovery nodes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'pr> FullName<'pr> for ConstantPathNode<'pr>

Source§

impl<'pr> FullName<'pr> for ConstantPathTargetNode<'pr>

Source§

impl<'pr> FullName<'pr> for ConstantReadNode<'pr>

Source§

impl<'pr> FullName<'pr> for ConstantTargetNode<'pr>

Source§

impl<'pr> FullName<'pr> for ConstantWriteNode<'pr>