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
pub fn to(self, node: impl Into<Label>) -> Self
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