pub struct Positions<'a> { /* private fields */ }Implementations§
Source§impl<'a> Positions<'a>
impl<'a> Positions<'a>
pub fn new(call: &'a EmbeddedSqlCall, variant_index: usize) -> Self
pub fn source( &self, line: usize, column: usize, ) -> (Option<PathBuf>, usize, usize)
pub fn origin( &self, line: usize, column: usize, ) -> (Option<PathBuf>, usize, Option<usize>, usize)
pub fn mapped_offset(&self, line: usize, column: usize) -> Option<u32>
pub fn byte_offset(&self, line: usize, column: usize) -> Option<usize>
Auto Trait Implementations§
impl<'a> Forget for Positions<'a>
impl<'a> Freeze for Positions<'a>where
&'a str: Freeze,
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
&'a SqlByteOrigins: Freeze,
&'a [EmbeddedSqlSourcePosition]: Freeze,
impl<'a> Move for Positions<'a>
impl<'a> RefUnwindSafe for Positions<'a>
impl<'a> Send for Positions<'a>where
&'a str: Send,
RawVecInner: Send,
&'a SqlByteOrigins: Send,
&'a [EmbeddedSqlSourcePosition]: Send,
impl<'a> Sync for Positions<'a>where
RawVecInner: Sync,
impl<'a> Unpin for Positions<'a>where
&'a str: Unpin,
*const u8 is !null: Unpin,
&'a SqlByteOrigins: Unpin,
&'a [EmbeddedSqlSourcePosition]: Unpin,
impl<'a> UnsafeUnpin for Positions<'a>where
&'a str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
&'a SqlByteOrigins: UnsafeUnpin,
&'a [EmbeddedSqlSourcePosition]: UnsafeUnpin,
impl<'a> UnwindSafe for Positions<'a>where
&'a str: UnwindSafe,
RawVecInner: UnwindSafe,
&'a SqlByteOrigins: UnwindSafe,
&'a [EmbeddedSqlSourcePosition]: UnwindSafe,
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> 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