pub struct MyPath<T>(PathBuf, PhantomData<T>);Tuple Fields§
§0: PathBuf§1: PhantomData<T>Implementations§
Source§impl<T> MyPath<T>
impl<T> MyPath<T>
pub fn to_string_lossy(&self) -> Cow<'_, str>
pub fn verified<P: AsRef<Path>>(&self, at: P) -> Result<PathBuf, Error>
fn new(buf: PathBuf) -> Self
pub fn verified_child<P: AsRef<Path>>(&self, at: P) -> Result<PathBuf, Error>
pub fn parse_at<P, F>(self, at: P, f: F) -> Result<T>
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for MyPath<T>
impl<'de, T> Deserialize<'de> for MyPath<T>
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<V> DeserializeAt<ConditionSamples<V>> for MyPath<ConditionConfig<V>>
impl<V> DeserializeAt<ConditionSamples<V>> for MyPath<ConditionConfig<V>>
Source§impl<V> DeserializeAt<DeAgentConfig<V>> for MyPath<AgentConfig<V>>
impl<V> DeserializeAt<DeAgentConfig<V>> for MyPath<AgentConfig<V>>
Source§impl<V> DeserializeAt<DeNetworkConfig<V>> for MyPath<NetworkConfig<V>>where
V: MyFloat + for<'a> Deserialize<'a>,
impl<V> DeserializeAt<DeNetworkConfig<V>> for MyPath<NetworkConfig<V>>where
V: MyFloat + for<'a> Deserialize<'a>,
Source§impl<V> DeserializeAt<DeStrategyConfig<V>> for MyPath<StrategyConfig<V>>
impl<V> DeserializeAt<DeStrategyConfig<V>> for MyPath<StrategyConfig<V>>
Source§impl<V> DeserializeAt<UncertaintySamples<V>> for MyPath<UncertaintyConfig<V>>where
V: MyFloat + for<'a> Deserialize<'a>,
impl<V> DeserializeAt<UncertaintySamples<V>> for MyPath<UncertaintyConfig<V>>where
V: MyFloat + for<'a> Deserialize<'a>,
Auto Trait Implementations§
impl<T> Freeze for MyPath<T>
impl<T> RefUnwindSafe for MyPath<T>where
T: RefUnwindSafe,
impl<T> Send for MyPath<T>where
T: Send,
impl<T> Sync for MyPath<T>where
T: Sync,
impl<T> Unpin for MyPath<T>where
T: Unpin,
impl<T> UnwindSafe for MyPath<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 more