pub struct Crosswalk { /* private fields */ }Expand description
A parsed crosswalk. It is built only by parse_crosswalk and cannot be changed afterwards, so the prepared form
the executor builds the first time it is used stays the crosswalk’s own.
Implementations§
Source§impl Crosswalk
impl Crosswalk
Sourcepub fn schema(&self) -> Option<&str>
pub fn schema(&self) -> Option<&str>
The address of the JSON Schema the document declares itself written against. It has no part in encoding, decoding or validation.
Sourcepub fn rules(&self) -> &[TwoWayRule]
pub fn rules(&self) -> &[TwoWayRule]
The two-way rules, kept paths included as the moves they stand for.
Sourcepub fn one_way(&self) -> &[OneWayRule]
pub fn one_way(&self) -> &[OneWayRule]
The one-way rules.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Crosswalk
impl<'de> Deserialize<'de> for Crosswalk
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for Crosswalk
impl Forget for Crosswalk
impl Move for Crosswalk
impl RefUnwindSafe for Crosswalk
impl Send for Crosswalk
impl Sync for Crosswalk
impl Unpin for Crosswalk
impl UnsafeUnpin for Crosswalk
impl UnwindSafe for Crosswalk
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