pub struct PatchBuilder { /* private fields */ }
Expand description
Builder for creating AST patches
Implementations§
Source§impl PatchBuilder
impl PatchBuilder
Sourcepub fn delete_node(self, node_id: String) -> Self
pub fn delete_node(self, node_id: String) -> Self
Delete a node
Sourcepub fn delete_nodes(self, node_ids: Vec<String>) -> Self
pub fn delete_nodes(self, node_ids: Vec<String>) -> Self
Delete multiple nodes
Sourcepub fn delete_edge(self, edge_id: String) -> Self
pub fn delete_edge(self, edge_id: String) -> Self
Delete an edge
Sourcepub fn delete_edges(self, edge_ids: Vec<String>) -> Self
pub fn delete_edges(self, edge_ids: Vec<String>) -> Self
Delete multiple edges
Sourcepub fn with_timestamp(self, timestamp_ms: i64) -> Self
pub fn with_timestamp(self, timestamp_ms: i64) -> Self
Set custom timestamp
Auto Trait Implementations§
impl Freeze for PatchBuilder
impl RefUnwindSafe for PatchBuilder
impl Send for PatchBuilder
impl Sync for PatchBuilder
impl Unpin for PatchBuilder
impl UnwindSafe for PatchBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more