Enum runestick::ComponentRef [−][src]
Expand description
A reference to a component of an item.
All indexes refer to sibling indexes. So two sibling id components could
have the indexes 1
and 2
respectively.
Variants
A crate string component.
Tuple Fields of Crate
0: &'a str
A regular string component.
Tuple Fields of Str
0: &'a str
A nested anonymous part with an identifier.
Tuple Fields of Id
0: usize
Implementations
Get the identifier of the component if it is an identifier component.
Convert into an owned component.
Write the current component to the given vector.
Hash the current component to the given hasher.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Convert into a component directly.
Convert into component.
Write a component directly to a buffer.
Hash the current component.
Convert into a component directly.
Convert into component.
Write a component directly to a buffer.
Hash the current component.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ComponentRef<'a>
impl<'a> Send for ComponentRef<'a>
impl<'a> Sync for ComponentRef<'a>
impl<'a> Unpin for ComponentRef<'a>
impl<'a> UnwindSafe for ComponentRef<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more