pub trait ParentShape {
// Required methods
fn namespace() -> &'static str;
fn resolve(segments: &[&str]) -> Option<(String, Option<String>)>;
}Expand description
A client’s route grammar, for inferring a graft’s needs.
Required Methods§
Sourcefn resolve(segments: &[&str]) -> Option<(String, Option<String>)>
fn resolve(segments: &[&str]) -> Option<(String, Option<String>)>
segments are a call chain’s names as the Rust code wrote them
(["ui", "slots", "list", "collect"]). The wire path of the method the
chain calls, below this client’s node ("ui.slots.list"), and its
shape hash where known; None when the chain names no method of this
client (a dynamic child’s or a peer slot’s accessor, which take a name
only known when the code runs).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".