Struct sapio_base::effects::reverse_path::ReversePath
source · pub struct ReversePath<T, Y = String> { /* private fields */ }
Expand description
Used to Build a Shared Path for all children of a given context.
Implementations§
source§impl<T, Y> ReversePath<T, Y>
impl<T, Y> ReversePath<T, Y>
sourcepub fn push(v: Option<Arc<ReversePath<T, Y>>>, s: T) -> Arc<ReversePath<T, Y>>
pub fn push(v: Option<Arc<ReversePath<T, Y>>>, s: T) -> Arc<ReversePath<T, Y>>
Add an element to a ReversePath
sourcepub fn push_owned(v: Option<Arc<ReversePath<T, Y>>>, s: T) -> ReversePath<T, Y>
pub fn push_owned(v: Option<Arc<ReversePath<T, Y>>>, s: T) -> ReversePath<T, Y>
Add an element to a ReversePath and do not wrap in Arc
Trait Implementations§
source§impl<T: Clone, Y: Clone> Clone for ReversePath<T, Y>
impl<T: Clone, Y: Clone> Clone for ReversePath<T, Y>
source§fn clone(&self) -> ReversePath<T, Y>
fn clone(&self) -> ReversePath<T, Y>
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<'de, T, Y> Deserialize<'de> for ReversePath<T, Y>
impl<'de, T, Y> Deserialize<'de> for ReversePath<T, Y>
source§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
source§impl From<ReversePath<PathFragment>> for String
impl From<ReversePath<PathFragment>> for String
source§fn from(r: ReversePath<PathFragment>) -> String
fn from(r: ReversePath<PathFragment>) -> String
Converts to this type from the input type.
source§impl<T: Clone, Y> From<ReversePath<T, Y>> for Vec<T>
impl<T: Clone, Y> From<ReversePath<T, Y>> for Vec<T>
source§fn from(r: ReversePath<T, Y>) -> Self
fn from(r: ReversePath<T, Y>) -> Self
Converts to this type from the input type.
source§impl<T: Clone, Y> From<T> for ReversePath<T, Y>
impl<T: Clone, Y> From<T> for ReversePath<T, Y>
source§impl<T: JsonSchema, Y: JsonSchema> JsonSchema for ReversePath<T, Y>
impl<T: JsonSchema, Y: JsonSchema> JsonSchema for ReversePath<T, Y>
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl<T: Ord, Y: Ord> Ord for ReversePath<T, Y>
impl<T: Ord, Y: Ord> Ord for ReversePath<T, Y>
source§fn cmp(&self, other: &ReversePath<T, Y>) -> Ordering
fn cmp(&self, other: &ReversePath<T, Y>) -> 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<T: PartialEq, Y: PartialEq> PartialEq for ReversePath<T, Y>
impl<T: PartialEq, Y: PartialEq> PartialEq for ReversePath<T, Y>
source§fn eq(&self, other: &ReversePath<T, Y>) -> bool
fn eq(&self, other: &ReversePath<T, Y>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd, Y: PartialOrd> PartialOrd for ReversePath<T, Y>
impl<T: PartialOrd, Y: PartialOrd> PartialOrd for ReversePath<T, Y>
source§fn partial_cmp(&self, other: &ReversePath<T, Y>) -> Option<Ordering>
fn partial_cmp(&self, other: &ReversePath<T, Y>) -> 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<T, Y> Serialize for ReversePath<T, Y>
impl<T, Y> Serialize for ReversePath<T, Y>
source§impl TryFrom<&str> for ReversePath<PathFragment>
impl TryFrom<&str> for ReversePath<PathFragment>
§type Error = ValidFragmentError
type Error = ValidFragmentError
The type returned in the event of a conversion error.
source§fn try_from(r: &str) -> Result<ReversePath<PathFragment>, Self::Error>
fn try_from(r: &str) -> Result<ReversePath<PathFragment>, Self::Error>
Performs the conversion.
source§impl TryFrom<String> for ReversePath<PathFragment>
impl TryFrom<String> for ReversePath<PathFragment>
§type Error = ValidFragmentError
type Error = ValidFragmentError
The type returned in the event of a conversion error.
source§fn try_from(r: String) -> Result<ReversePath<PathFragment>, Self::Error>
fn try_from(r: String) -> Result<ReversePath<PathFragment>, Self::Error>
Performs the conversion.
source§impl<T, Y> TryFrom<Vec<T>> for ReversePath<T, Y>
impl<T, Y> TryFrom<Vec<T>> for ReversePath<T, Y>
impl<T: Eq, Y: Eq> Eq for ReversePath<T, Y>
impl<T, Y> StructuralEq for ReversePath<T, Y>
impl<T, Y> StructuralPartialEq for ReversePath<T, Y>
Auto Trait Implementations§
impl<T, Y> RefUnwindSafe for ReversePath<T, Y>where
T: RefUnwindSafe,
Y: RefUnwindSafe,
impl<T, Y> Send for ReversePath<T, Y>
impl<T, Y> Sync for ReversePath<T, Y>
impl<T, Y> Unpin for ReversePath<T, Y>
impl<T, Y> UnwindSafe for ReversePath<T, Y>
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
Mutably borrows from an owned value. Read more