pub struct RuntimeRef(/* private fields */);Expand description
Reference into EnvironmentRuntime::discovered:
runtime://<env>/discovered/<path>.
Implementations§
Source§impl RuntimeRef
impl RuntimeRef
pub fn try_new(raw: impl Into<String>) -> Result<Self, RuntimeRefParseError>
pub fn as_str(&self) -> &str
Sourcepub fn env_segment(&self) -> &str
pub fn env_segment(&self) -> &str
First path segment after the scheme — the env id the ref is
scoped to. Returns None if the ref was constructed by a
future version of this crate that bypassed Self::try_new
(current invariant: Self::try_new always populates this).
Trait Implementations§
Source§impl Clone for RuntimeRef
impl Clone for RuntimeRef
Source§fn clone(&self) -> RuntimeRef
fn clone(&self) -> RuntimeRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeRef
impl Debug for RuntimeRef
Source§impl<'de> Deserialize<'de> for RuntimeRef
impl<'de> Deserialize<'de> for RuntimeRef
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 Display for RuntimeRef
impl Display for RuntimeRef
impl Eq for RuntimeRef
Source§impl From<RuntimeRef> for String
impl From<RuntimeRef> for String
Source§fn from(value: RuntimeRef) -> Self
fn from(value: RuntimeRef) -> Self
Converts to this type from the input type.
Source§impl FromStr for RuntimeRef
impl FromStr for RuntimeRef
Source§impl Hash for RuntimeRef
impl Hash for RuntimeRef
Source§impl PartialEq for RuntimeRef
impl PartialEq for RuntimeRef
Source§fn eq(&self, other: &RuntimeRef) -> bool
fn eq(&self, other: &RuntimeRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RuntimeRef
impl Serialize for RuntimeRef
impl StructuralPartialEq for RuntimeRef
Auto Trait Implementations§
impl Freeze for RuntimeRef
impl RefUnwindSafe for RuntimeRef
impl Send for RuntimeRef
impl Sync for RuntimeRef
impl Unpin for RuntimeRef
impl UnsafeUnpin for RuntimeRef
impl UnwindSafe for RuntimeRef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.