Struct re_data_store::EntityPath
source · pub struct EntityPath { /* private fields */ }Expand description
Implementations§
source§impl EntityPath
impl EntityPath
pub fn root() -> EntityPath
pub fn new(parts: Vec<EntityPathPart, Global>) -> EntityPath
pub fn iter(&self) -> impl Iterator<Item = &EntityPathPart>
pub fn last(&self) -> Option<&EntityPathPart>
pub fn as_slice(&self) -> &[EntityPathPart]
pub fn is_root(&self) -> bool
sourcepub fn is_descendant_of(&self, other: &EntityPath) -> bool
pub fn is_descendant_of(&self, other: &EntityPath) -> bool
Is this a strict descendant of the given path.
sourcepub fn is_child_of(&self, other: &EntityPath) -> bool
pub fn is_child_of(&self, other: &EntityPath) -> bool
Is this a direct child of the other path.
pub fn hash(&self) -> EntityPathHash
sourcepub fn parent(&self) -> Option<EntityPath>
pub fn parent(&self) -> Option<EntityPath>
Return None if root.
pub fn join(&self, other: &EntityPath) -> EntityPath
Trait Implementations§
source§impl Clone for EntityPath
impl Clone for EntityPath
source§fn clone(&self) -> EntityPath
fn clone(&self) -> EntityPath
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for EntityPath
impl Debug for EntityPath
source§impl<'de> Deserialize<'de> for EntityPath
impl<'de> Deserialize<'de> for EntityPath
source§fn deserialize<D>(
deserializer: D
) -> Result<EntityPath, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<EntityPath, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for EntityPath
impl Display for EntityPath
source§impl From<&[EntityPathPart]> for EntityPath
impl From<&[EntityPathPart]> for EntityPath
source§fn from(path: &[EntityPathPart]) -> EntityPath
fn from(path: &[EntityPathPart]) -> EntityPath
Converts to this type from the input type.
source§impl From<&str> for EntityPath
impl From<&str> for EntityPath
source§fn from(path: &str) -> EntityPath
fn from(path: &str) -> EntityPath
Converts to this type from the input type.
source§impl From<EntityPath> for String
impl From<EntityPath> for String
source§fn from(path: EntityPath) -> String
fn from(path: EntityPath) -> String
Converts to this type from the input type.
source§impl From<EntityPathImpl> for EntityPath
impl From<EntityPathImpl> for EntityPath
source§fn from(path: EntityPathImpl) -> EntityPath
fn from(path: EntityPathImpl) -> EntityPath
Converts to this type from the input type.
source§impl From<String> for EntityPath
impl From<String> for EntityPath
source§fn from(path: String) -> EntityPath
fn from(path: String) -> EntityPath
Converts to this type from the input type.
source§impl From<Vec<EntityPathPart, Global>> for EntityPath
impl From<Vec<EntityPathPart, Global>> for EntityPath
source§fn from(path: Vec<EntityPathPart, Global>) -> EntityPath
fn from(path: Vec<EntityPathPart, Global>) -> EntityPath
Converts to this type from the input type.
source§impl FromIterator<EntityPathPart> for EntityPath
impl FromIterator<EntityPathPart> for EntityPath
source§fn from_iter<T>(parts: T) -> EntityPathwhere
T: IntoIterator<Item = EntityPathPart>,
fn from_iter<T>(parts: T) -> EntityPathwhere T: IntoIterator<Item = EntityPathPart>,
Creates a value from an iterator. Read more
source§impl Hash for EntityPath
impl Hash for EntityPath
source§impl Ord for EntityPath
impl Ord for EntityPath
source§fn cmp(&self, other: &EntityPath) -> Ordering
fn cmp(&self, other: &EntityPath) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EntityPath> for EntityPath
impl PartialEq<EntityPath> for EntityPath
source§fn eq(&self, other: &EntityPath) -> bool
fn eq(&self, other: &EntityPath) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<EntityPath> for EntityPath
impl PartialOrd<EntityPath> for EntityPath
source§fn partial_cmp(&self, other: &EntityPath) -> Option<Ordering>
fn partial_cmp(&self, other: &EntityPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for EntityPath
impl Serialize for EntityPath
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for EntityPath
impl IsEnabled for EntityPath
impl StructuralEq for EntityPath
Auto Trait Implementations§
impl RefUnwindSafe for EntityPath
impl Send for EntityPath
impl Sync for EntityPath
impl Unpin for EntityPath
impl UnwindSafe for EntityPath
Blanket Implementations§
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.