pub struct SearchResult {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}
Fields§
§proc: Option<Arc<DaggerSessionProc>>
§selection: Selection
§graphql_client: DynGraphQLClient
Implementations§
Source§impl SearchResult
impl SearchResult
Sourcepub async fn absolute_offset(&self) -> Result<isize, DaggerError>
pub async fn absolute_offset(&self) -> Result<isize, DaggerError>
The byte offset of this line within the file.
Sourcepub async fn file_path(&self) -> Result<String, DaggerError>
pub async fn file_path(&self) -> Result<String, DaggerError>
The path to the file that matched.
Sourcepub async fn id(&self) -> Result<SearchResultId, DaggerError>
pub async fn id(&self) -> Result<SearchResultId, DaggerError>
A unique identifier for this SearchResult.
Sourcepub async fn line_number(&self) -> Result<isize, DaggerError>
pub async fn line_number(&self) -> Result<isize, DaggerError>
The first line that matched.
Sourcepub async fn matched_lines(&self) -> Result<String, DaggerError>
pub async fn matched_lines(&self) -> Result<String, DaggerError>
The line content that matched.
Sourcepub fn submatches(&self) -> Vec<SearchSubmatch>
pub fn submatches(&self) -> Vec<SearchSubmatch>
Sub-match positions and content within the matched lines.
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl IntoID<SearchResultId> for SearchResult
impl IntoID<SearchResultId> for SearchResult
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<SearchResultId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for SearchResult
impl !RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl !UnwindSafe for SearchResult
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