pub struct EntityPath { /* private fields */ }Expand description
The unique identifier of an entity, e.g. camera/3/points
The entity path is a list of parts separated by slashes.
Each part is a non-empty string, that can contain any character.
When written as a string, some characters in the parts need to be escaped with a \
(only character, numbers, ., -, _ does not need escaping).
See https://www.rerun.io/docs/concepts/logging-and-ingestion/entity-path for more on entity paths.
This is basically implemented as a list of strings, but is reference-counted internally, so it is cheap to clone.
It also has a precomputed hash and implemented nohash_hasher::IsEnabled,
so it is very cheap to use in a nohash_hasher::IntMap and nohash_hasher::IntSet.
assert_eq!(
EntityPath::parse_strict(r#"camera/ACME\ Örnöga/points/42"#).unwrap(),
EntityPath::new(vec![
"camera".into(),
"ACME Örnöga".into(),
"points".into(),
"42".into(),
])
);Implementations§
Source§impl EntityPath
impl EntityPath
pub fn root() -> EntityPath
Sourcepub fn properties() -> EntityPath
pub fn properties() -> EntityPath
The reserved namespace for recording properties,
both the built-in ones (RecordingInfo) and user-defined ones.
Sourcepub fn is_reserved(&self) -> bool
pub fn is_reserved(&self) -> bool
Returns true if the EntityPath belongs to a reserved namespace.
Returns true iff the root entity starts with __.
pub fn new(parts: Vec<EntityPathPart>) -> EntityPath
Sourcepub fn from_file_path_as_single_string(file_path: &Path) -> EntityPath
pub fn from_file_path_as_single_string(file_path: &Path) -> EntityPath
Treat the file path as one opaque string.
The file path separators will NOT become splits in the new path. The returned path will only have one part.
Sourcepub fn from_file_path(file_path: &Path) -> EntityPath
pub fn from_file_path(file_path: &Path) -> EntityPath
Treat the file path as an entity path hierarchy.
The file path separators will become splits in the new path.
Sourcepub fn ui_string(&self) -> String
pub fn ui_string(&self) -> String
The full, unescaped path string for display purposes in the UI.
Like std::fmt::Display but uses EntityPathPart::ui_string for each part,
producing a human-friendly representation without backslash escaping
(e.g. /foo::bar instead of /foo\:\:bar).
Sourcepub fn from_single_string(string: impl Into<InternedString>) -> EntityPath
pub fn from_single_string(string: impl Into<InternedString>) -> EntityPath
Treat the string as one opaque string, NOT splitting on any slashes.
The given string is expected to be unescaped, i.e. any \ is treated as a normal character.
pub fn iter(&self) -> impl DoubleEndedIterator + ExactSizeIterator
pub fn last(&self) -> Option<&EntityPathPart>
pub fn as_slice(&self) -> &[EntityPathPart]
pub fn to_vec(&self) -> Vec<EntityPathPart>
pub fn is_root(&self) -> bool
pub fn is_property(&self) -> bool
Sourcepub fn starts_with(&self, prefix: &EntityPath) -> bool
pub fn starts_with(&self, prefix: &EntityPath) -> bool
Is this equals to, or a descendant of, the given path.
Sourcepub fn strip_prefix(&self, prefix: &EntityPath) -> Option<EntityPath>
pub fn strip_prefix(&self, prefix: &EntityPath) -> Option<EntityPath>
If this path starts with the given prefix, then return the rest of the path after the prefix.
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 calculate_deterministic_hash(&self) -> u64
pub fn calculate_deterministic_hash(&self) -> u64
Calculates a deterministic hash of the entity path.
This is useful for generating deterministic IDs for visualizer instructions. By default, self.hash is generated using ahash, which works differently on web and native.
Sourcepub fn parent(&self) -> Option<EntityPath>
pub fn parent(&self) -> Option<EntityPath>
Return None if root.
pub fn join(&self, other: &EntityPath) -> EntityPath
Sourcepub fn incremental_walk<'a>(
start: Option<&EntityPath>,
end: &'a EntityPath,
) -> impl Iterator<Item = EntityPath> + 'a + use<'a>
pub fn incremental_walk<'a>( start: Option<&EntityPath>, end: &'a EntityPath, ) -> impl Iterator<Item = EntityPath> + 'a + use<'a>
Helper function to iterate over all incremental EntityPaths from start to end, NOT including start itself.
For example incremental_walk("foo", "foo/bar/baz") returns: ["foo/bar", "foo/bar/baz"]
Sourcepub fn common_ancestor(&self, other: &EntityPath) -> EntityPath
pub fn common_ancestor(&self, other: &EntityPath) -> EntityPath
Returns the first common ancestor of two paths.
If both paths are the same, the common ancestor is the path itself.
Sourcepub fn common_ancestor_of<'a>(
entities: impl Iterator<Item = &'a EntityPath>,
) -> EntityPath
pub fn common_ancestor_of<'a>( entities: impl Iterator<Item = &'a EntityPath>, ) -> EntityPath
Returns the first common ancestor of a list of entity paths.
Sourcepub fn short_names_with_disambiguation(
entities: impl IntoIterator<Item = EntityPath>,
) -> HashMap<EntityPath, String, RandomState>
pub fn short_names_with_disambiguation( entities: impl IntoIterator<Item = EntityPath>, ) -> HashMap<EntityPath, String, RandomState>
Returns short names for a collection of entities based on the last part(s), ensuring uniqueness. Disambiguation is achieved by increasing the number of entity parts used.
Note: the result is undefined when the input contains duplicates.
Source§impl EntityPath
§Entity path parsing
When parsing a DataPath, it is important that we can distinguish the
component and index from the actual entity path. This requires
us to forbid certain characters in an entity part name.
For instance, in foo/bar.baz, is baz a component type, or part of the entity path?
So, when parsing a full DataPaths we are quite strict with what we allow.
But when parsing EntityPaths we want to be a bit more forgiving, so we
can accept things like foo/bar.baz and transform it into foo/"bar.baz".
This allows user to do things like log(f"foo/{filename}", my_mesh) without
Rerun throwing a fit.
impl EntityPath
§Entity path parsing
When parsing a DataPath, it is important that we can distinguish the
component and index from the actual entity path. This requires
us to forbid certain characters in an entity part name.
For instance, in foo/bar.baz, is baz a component type, or part of the entity path?
So, when parsing a full DataPaths we are quite strict with what we allow.
But when parsing EntityPaths we want to be a bit more forgiving, so we
can accept things like foo/bar.baz and transform it into foo/"bar.baz".
This allows user to do things like log(f"foo/{filename}", my_mesh) without
Rerun throwing a fit.
Sourcepub fn parse_strict(input: &str) -> Result<EntityPath, PathParseError>
pub fn parse_strict(input: &str) -> Result<EntityPath, PathParseError>
Parse an entity path from a string, with strict checks for correctness.
Parses anything that ent_path.to_string() outputs.
For a forgiving parse that accepts anything, use Self::parse_forgiving.
Sourcepub fn parse_forgiving(input: &str) -> EntityPath
pub fn parse_forgiving(input: &str) -> EntityPath
Parses an entity path, handling any malformed input with a logged warning.
Things like foo/Hallå Där! will be accepted, and transformed into
the path foo/Hallå\ Där\!.
For a strict parses, use Self::parse_strict instead.
Trait Implementations§
Source§impl Clone for EntityPath
impl Clone for EntityPath
Source§fn clone(&self) -> EntityPath
fn clone(&self) -> EntityPath
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl DataUi for EntityPath
impl DataUi for EntityPath
Source§impl Debug for EntityPath
impl Debug for EntityPath
Source§impl<'de> Deserialize<'de> for EntityPath
Available on crate feature serde only.
impl<'de> Deserialize<'de> for EntityPath
serde only.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>,
Source§impl Display for EntityPath
impl Display for EntityPath
Source§impl Div<&'static str> for &EntityPath
impl Div<&'static str> for &EntityPath
Source§impl Div<&'static str> for EntityPath
impl Div<&'static str> for EntityPath
Source§impl Div<EntityPathPart> for &EntityPath
impl Div<EntityPathPart> for &EntityPath
Source§type Output = EntityPath
type Output = EntityPath
/ operator.Source§fn div(
self,
other: EntityPathPart,
) -> <&EntityPath as Div<EntityPathPart>>::Output
fn div( self, other: EntityPathPart, ) -> <&EntityPath as Div<EntityPathPart>>::Output
/ operation. Read moreSource§impl Div<EntityPathPart> for EntityPath
impl Div<EntityPathPart> for EntityPath
Source§type Output = EntityPath
type Output = EntityPath
/ operator.Source§fn div(
self,
other: EntityPathPart,
) -> <EntityPath as Div<EntityPathPart>>::Output
fn div( self, other: EntityPathPart, ) -> <EntityPath as Div<EntityPathPart>>::Output
/ operation. Read moreSource§impl Div for &EntityPath
impl Div for &EntityPath
Source§type Output = EntityPath
type Output = EntityPath
/ operator.Source§fn div(self, other: &EntityPath) -> <&EntityPath as Div>::Output
fn div(self, other: &EntityPath) -> <&EntityPath as Div>::Output
/ operation. Read moreSource§impl Div for EntityPath
impl Div for EntityPath
Source§type Output = EntityPath
type Output = EntityPath
/ operator.Source§fn div(self, other: EntityPath) -> <EntityPath as Div>::Output
fn div(self, other: EntityPath) -> <EntityPath as Div>::Output
/ operation. Read moreSource§impl From<&[EntityPathPart]> for EntityPath
impl From<&[EntityPathPart]> for EntityPath
Source§fn from(path: &[EntityPathPart]) -> EntityPath
fn from(path: &[EntityPathPart]) -> EntityPath
Source§impl<'a> From<&'a EntityPath> for Cow<'a, EntityPath>
impl<'a> From<&'a EntityPath> for Cow<'a, EntityPath>
Source§fn from(value: &'a EntityPath) -> Cow<'a, EntityPath>
fn from(value: &'a EntityPath) -> Cow<'a, EntityPath>
Source§impl From<&EntityPath> for EntityPath
impl From<&EntityPath> for EntityPath
Source§fn from(value: &EntityPath) -> EntityPath
fn from(value: &EntityPath) -> EntityPath
Source§impl From<&str> for EntityPath
impl From<&str> for EntityPath
Source§fn from(path: &str) -> EntityPath
fn from(path: &str) -> EntityPath
Source§impl<'a> From<EntityPath> for Cow<'a, EntityPath>
impl<'a> From<EntityPath> for Cow<'a, EntityPath>
Source§fn from(value: EntityPath) -> Cow<'a, EntityPath>
fn from(value: EntityPath) -> Cow<'a, EntityPath>
Source§impl From<EntityPath> for EntityPath
impl From<EntityPath> for EntityPath
Source§fn from(value: EntityPath) -> EntityPath
fn from(value: EntityPath) -> EntityPath
Source§impl From<EntityPath> for EntityPath
impl From<EntityPath> for EntityPath
Source§fn from(value: EntityPath) -> EntityPath
fn from(value: EntityPath) -> EntityPath
Source§impl From<EntityPath> for EntityPathRule
impl From<EntityPath> for EntityPathRule
Source§fn from(entity_path: EntityPath) -> EntityPathRule
fn from(entity_path: EntityPath) -> EntityPathRule
Source§impl From<EntityPath> for InstancePath
impl From<EntityPath> for InstancePath
Source§fn from(entity_path: EntityPath) -> InstancePath
fn from(entity_path: EntityPath) -> InstancePath
Source§impl From<EntityPath> for Item
impl From<EntityPath> for Item
Source§fn from(entity_path: EntityPath) -> Item
fn from(entity_path: EntityPath) -> Item
Source§impl From<EntityPath> for String
impl From<EntityPath> for String
Source§fn from(path: EntityPath) -> String
fn from(path: EntityPath) -> String
Source§impl From<String> for EntityPath
impl From<String> for EntityPath
Source§fn from(path: String) -> EntityPath
fn from(path: String) -> EntityPath
Source§impl From<Vec<EntityPathPart>> for EntityPath
impl From<Vec<EntityPathPart>> for EntityPath
Source§fn from(path: Vec<EntityPathPart>) -> EntityPath
fn from(path: Vec<EntityPathPart>) -> EntityPath
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>,
Source§impl Hash for EntityPath
impl Hash for EntityPath
Source§impl<Idx> Index<Idx> for EntityPathwhere
Idx: SliceIndex<[EntityPathPart]>,
impl<Idx> Index<Idx> for EntityPathwhere
Idx: SliceIndex<[EntityPathPart]>,
Source§type Output = <Idx as SliceIndex<[EntityPathPart]>>::Output
type Output = <Idx as SliceIndex<[EntityPathPart]>>::Output
Source§impl Loggable for EntityPath
impl Loggable for EntityPath
Source§fn arrow_datatype() -> DataType
fn arrow_datatype() -> DataType
arrow::datatypes::DataType, excluding datatype extensions.Source§fn to_arrow_opt<'a>(
_data: impl IntoIterator<Item = Option<impl Into<Cow<'a, EntityPath>>>>,
) -> Result<Arc<dyn Array>, SerializationError>where
EntityPath: 'a,
fn to_arrow_opt<'a>(
_data: impl IntoIterator<Item = Option<impl Into<Cow<'a, EntityPath>>>>,
) -> Result<Arc<dyn Array>, SerializationError>where
EntityPath: 'a,
Source§fn to_arrow<'a>(
data: impl IntoIterator<Item = impl Into<Cow<'a, EntityPath>>>,
) -> Result<Arc<dyn Array>, SerializationError>where
EntityPath: 'a,
fn to_arrow<'a>(
data: impl IntoIterator<Item = impl Into<Cow<'a, EntityPath>>>,
) -> Result<Arc<dyn Array>, SerializationError>where
EntityPath: 'a,
Source§fn from_arrow(
array: &dyn Array,
) -> Result<Vec<EntityPath>, DeserializationError>
fn from_arrow( array: &dyn Array, ) -> Result<Vec<EntityPath>, DeserializationError>
Loggables.fn arrow_empty() -> Arc<dyn Array>
Source§fn from_arrow_opt(
data: &dyn Array,
) -> Result<Vec<Option<Self>>, DeserializationError>
fn from_arrow_opt( data: &dyn Array, ) -> Result<Vec<Option<Self>>, DeserializationError>
Loggables.Source§fn verify_arrow_array(data: &dyn Array) -> Result<(), DeserializationError>
fn verify_arrow_array(data: &dyn Array) -> Result<(), DeserializationError>
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,
Source§impl PartialEq for EntityPath
impl PartialEq for EntityPath
Source§impl PartialOrd for EntityPath
impl PartialOrd for EntityPath
Source§impl Serialize for EntityPath
Available on crate feature serde only.
impl Serialize for EntityPath
serde only.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,
Source§impl SizeBytes for EntityPath
impl SizeBytes for EntityPath
Source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
self uses on the heap. Read moreSource§fn total_size_bytes(&self) -> u64
fn total_size_bytes(&self) -> u64
self in bytes, accounting for both stack and heap space.Source§fn stack_size_bytes(&self) -> u64
fn stack_size_bytes(&self) -> u64
self on the stack, in bytes. Read moreSource§impl SyntaxHighlighting for EntityPath
impl SyntaxHighlighting for EntityPath
fn syntax_highlight_into(&self, builder: &mut SyntaxHighlightedBuilder)
fn syntax_highlighted(&self, style: &Style) -> LayoutJob
Source§impl TryFrom<EntityPath> for EntityPath
impl TryFrom<EntityPath> for EntityPath
Source§type Error = TypeConversionError
type Error = TypeConversionError
Source§fn try_from(
value: EntityPath,
) -> Result<EntityPath, <EntityPath as TryFrom<EntityPath>>::Error>
fn try_from( value: EntityPath, ) -> Result<EntityPath, <EntityPath as TryFrom<EntityPath>>::Error>
impl Eq for EntityPath
impl IsEnabled for EntityPath
Auto Trait Implementations§
impl Freeze for EntityPath
impl RefUnwindSafe for EntityPath
impl Send for EntityPath
impl Sync for EntityPath
impl Unpin for EntityPath
impl UnsafeUnpin for EntityPath
impl UnwindSafe for EntityPath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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>,
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>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<L> ComponentBatch for L
impl<L> ComponentBatch for L
Source§fn to_arrow(&self) -> Result<Arc<dyn Array>, SerializationError>
fn to_arrow(&self) -> Result<Arc<dyn Array>, SerializationError>
Source§fn to_arrow_list_array(
&self,
) -> Result<GenericListArray<i32>, SerializationError>
fn to_arrow_list_array( &self, ) -> Result<GenericListArray<i32>, SerializationError>
Source§fn serialized(
&self,
component_descr: ComponentDescriptor,
) -> Option<SerializedComponentBatch>
fn serialized( &self, component_descr: ComponentDescriptor, ) -> Option<SerializedComponentBatch>
ComponentBatch. Read moreSource§fn try_serialized(
&self,
component_descr: ComponentDescriptor,
) -> Result<SerializedComponentBatch, SerializationError>
fn try_serialized( &self, component_descr: ComponentDescriptor, ) -> Result<SerializedComponentBatch, SerializationError>
ComponentBatch. Read moreSource§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DragDropItem for Twhere
T: Hash,
impl<T> DragDropItem for Twhere
T: Hash,
Source§impl<T> EntityDataUi for Twhere
T: DataUi,
impl<T> EntityDataUi for Twhere
T: DataUi,
Source§fn entity_data_ui(
&self,
ctx: &StoreViewContext<'_>,
ui: &mut Ui,
ui_layout: UiLayout,
entity_path: &EntityPath,
_component_descriptor: &ComponentDescriptor,
_row_id: Option<RowId>,
)
fn entity_data_ui( &self, ctx: &StoreViewContext<'_>, ui: &mut Ui, ui_layout: UiLayout, entity_path: &EntityPath, _component_descriptor: &ComponentDescriptor, _row_id: Option<RowId>, )
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
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>
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
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>,
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)
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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>,
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
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.