pub enum StrCut {
Left,
Right,
}Expand description
Which end of a string a substring function counts from.
LEFT and RIGHT are the whole of the substring function in GQL,
SUBSTRING being a word the standard has reserved and left without
a meaning, so a query that wants the middle of a string writes one
of these inside the other. They are one kernel because the only
thing that differs is which end the walk starts at.
Variants§
Implementations§
Source§impl StrCut
impl StrCut
Sourcepub fn answer_type(self, arg: PhysType, count: PhysType) -> Option<PhysType>
pub fn answer_type(self, arg: PhysType, count: PhysType) -> Option<PhysType>
The type the answers land in. A part of a string is a string, and the count has to be a whole number by the time it gets here: a float count is one the row engine either truncates or raises over, and both of those are its own words, so a column of them goes back to it.
Trait Implementations§
impl Copy for StrCut
impl Eq for StrCut
impl StructuralPartialEq for StrCut
Auto Trait Implementations§
impl Freeze for StrCut
impl RefUnwindSafe for StrCut
impl Send for StrCut
impl Sync for StrCut
impl Unpin for StrCut
impl UnsafeUnpin for StrCut
impl UnwindSafe for StrCut
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