pub struct Rows<'a> { /* private fields */ }Expand description
The rows of one category, as a cursor a caller can walk.
Reading a category row by row rather than item by item is what the lowering stage wants, and doing it through one type keeps the absent-item handling in one place.
Implementations§
Source§impl<'a> Rows<'a>
impl<'a> Rows<'a>
Sourcepub fn identifier(&self, item: &str) -> Option<Cow<'a, str>>
pub fn identifier(&self, item: &str) -> Option<Cow<'a, str>>
One value of the current row, as an identifier.
Use this wherever the value names something rather than measures it: the format writes entity numbers and many chain labels as bare numerals, and reading those only as text loses them.
Sourcepub fn integer(&self, item: &str) -> Option<i64>
pub fn integer(&self, item: &str) -> Option<i64>
One value of the current row, as a whole number.
Sourcepub fn is_recorded(&self, item: &str) -> bool
pub fn is_recorded(&self, item: &str) -> bool
Whether one value of the current row was recorded at all.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Rows<'a>
impl<'a> RefUnwindSafe for Rows<'a>
impl<'a> Send for Rows<'a>
impl<'a> Sync for Rows<'a>
impl<'a> Unpin for Rows<'a>
impl<'a> UnsafeUnpin for Rows<'a>
impl<'a> UnwindSafe for Rows<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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