MCPcopy Create free account
hub / github.com/boa-dev/temporal / TryFromStr

Interface TryFromStr

zoneinfo/src/parser.rs:39–42  ·  view source on GitHub ↗

A utility trait for implementing a `try_from_str` with a provided context.

Source from the content-addressed store, hash-verified

37/// A utility trait for implementing a `try_from_str` with a provided
38/// context.
39pub trait TryFromStr<C>: Sized {
40 type Error;
41 fn try_from_str(s: &str, context: &mut C) -> Result<Self, Self::Error>;
42}
43
44/// The context for the line parser
45#[derive(Debug, Clone)]

Callers

nothing calls this directly

Implementers 5

parser.rszoneinfo/src/parser.rs
types.rszoneinfo/src/types.rs
zone.rszoneinfo/src/zone.rs
zone.rszoneinfo/src/types/zone.rs
rule.rszoneinfo/src/types/rule.rs

Calls

no outgoing calls

Tested by

no test coverage detected