pub struct DocApiRanges<'a, I: Invoker> { /* private fields */ }Implementations§
Source§impl<'a, I: Invoker> DocApiRanges<'a, I>
impl<'a, I: Invoker> DocApiRanges<'a, I>
pub fn new(invoker: &'a I) -> Self
Sourcepub fn resolve<'call>(
&'call self,
params: &'call DocRangesResolveBoundParams,
) -> impl Future<Output = Result<DocRangesResolveResult>> + Send + 'call
pub fn resolve<'call>( &'call self, params: &'call DocRangesResolveBoundParams, ) -> impl Future<Output = Result<DocRangesResolveResult>> + Send + 'call
Resolve two explicit anchors into a contiguous document range. Returns a transparent SelectionTarget, handle metadata, and preview metadata. handle.ref is nullable and present only when the resolved range is mutation-ready; callers must check handle.ref !== null and/or coversFullTarget before using it for mutations. Stateless and deterministic.
Sourcepub async fn resolve_with_options(
&self,
params: &DocRangesResolveBoundParams,
options: InvokeOptions,
) -> Result<DocRangesResolveResult>
pub async fn resolve_with_options( &self, params: &DocRangesResolveBoundParams, options: InvokeOptions, ) -> Result<DocRangesResolveResult>
Resolve two explicit anchors into a contiguous document range. Returns a transparent SelectionTarget, handle metadata, and preview metadata. handle.ref is nullable and present only when the resolved range is mutation-ready; callers must check handle.ref !== null and/or coversFullTarget before using it for mutations. Stateless and deterministic.
Auto Trait Implementations§
impl<'a, I> Freeze for DocApiRanges<'a, I>
impl<'a, I> RefUnwindSafe for DocApiRanges<'a, I>where
&'a I: RefUnwindSafe,
impl<'a, I> Send for DocApiRanges<'a, I>
impl<'a, I> Sync for DocApiRanges<'a, I>
impl<'a, I> Unpin for DocApiRanges<'a, I>
impl<'a, I> UnsafeUnpin for DocApiRanges<'a, I>where
&'a I: UnsafeUnpin,
impl<'a, I> UnwindSafe for DocApiRanges<'a, I>where
&'a I: 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