pub struct Traversal {
pub start: Start,
pub steps: Vec<Step>,
pub limit: Option<u32>,
}Fields§
§start: Start§steps: Vec<Step>§limit: Option<u32>Implementations§
Source§impl Traversal
impl Traversal
pub fn from_node(id: impl Into<NodeId>) -> Self
pub fn out(self, edge: impl Into<Label>) -> Self
pub fn in_(self, edge: impl Into<Label>) -> Self
pub fn both(self, edge: impl Into<Label>) -> Self
Sourcepub fn to(self, node: impl Into<Label>) -> Self
pub fn to(self, node: impl Into<Label>) -> Self
Constrains the target node label of the most recent step.
§Panics
Panics if called before any step has been added with out, in_, or
both, since there is no step for the label to apply to.
pub fn limit(self, limit: u32) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Traversal
impl<'de> Deserialize<'de> for Traversal
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
impl StructuralPartialEq for Traversal
Auto Trait Implementations§
impl Freeze for Traversal
impl RefUnwindSafe for Traversal
impl Send for Traversal
impl Sync for Traversal
impl Unpin for Traversal
impl UnsafeUnpin for Traversal
impl UnwindSafe for Traversal
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