Skip to content

Commit bcfa321

Browse files
committed
Remove RowItem
1 parent 15692a8 commit bcfa321

File tree

2 files changed

+1
-42
lines changed

2 files changed

+1
-42
lines changed

lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ pub use crate::errors::{
483483
pub use crate::graph::{query, Graph};
484484
pub use crate::query::{Query, QueryParameter};
485485
pub use crate::row::{Node, Path, Point2D, Point3D, Relation, Row, UnboundedRelation};
486-
pub use crate::stream::{DetachedRowStream, RowItem, RowStream};
486+
pub use crate::stream::{DetachedRowStream, RowStream};
487487
pub use crate::txn::Txn;
488488
pub use crate::types::serde::{
489489
DeError, EndNodeId, Id, Indices, Keys, Labels, Nodes, Offset, Relationships, StartNodeId,

lib/src/stream.rs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -80,47 +80,6 @@ impl DetachedRowStream {
8080
}
8181
}
8282

83-
#[derive(Clone, Debug)]
84-
pub enum RowItem<T = Row> {
85-
Row(T),
86-
#[cfg(feature = "unstable-result-summary")]
87-
Summary(BoxedSummary),
88-
}
89-
90-
impl<T> RowItem<T> {
91-
pub fn row(&self) -> Option<&T> {
92-
match self {
93-
RowItem::Row(row) => Some(row),
94-
#[cfg(feature = "unstable-result-summary")]
95-
_ => None,
96-
}
97-
}
98-
99-
#[cfg(feature = "unstable-result-summary")]
100-
pub fn summary(&self) -> Option<&ResultSummary> {
101-
match self {
102-
RowItem::Summary(summary) => Some(summary),
103-
_ => None,
104-
}
105-
}
106-
107-
pub fn into_row(self) -> Option<T> {
108-
match self {
109-
RowItem::Row(row) => Some(row),
110-
#[cfg(feature = "unstable-result-summary")]
111-
_ => None,
112-
}
113-
}
114-
115-
#[cfg(feature = "unstable-result-summary")]
116-
pub fn into_summary(self) -> Option<BoxedSummary> {
117-
match self {
118-
RowItem::Summary(summary) => Some(summary),
119-
_ => None,
120-
}
121-
}
122-
}
123-
12483
impl RowStream {
12584
/// A call to next() will return a row from an internal buffer if the buffer has any entries,
12685
/// if the buffer is empty and the server has more rows left to consume, then a new batch of rows

0 commit comments

Comments
 (0)