pub struct ColocatedLocator;Expand description
Default strategy: sidecar lives next to its source file with .aqm extension.
src/api.ts → src/api.aqm
Trait Implementations§
Source§impl SidecarLocator for ColocatedLocator
Available on crate feature fs only.
impl SidecarLocator for ColocatedLocator
Available on crate feature
fs only.Source§fn discover(&self, project_root: &ProjectRoot) -> Vec<(PathBuf, RelativePath)>
fn discover(&self, project_root: &ProjectRoot) -> Vec<(PathBuf, RelativePath)>
Discover all sidecar files and their corresponding source-relative paths.
Source§fn sidecar_for(&self, source: &RelativePath) -> RelativePath
fn sidecar_for(&self, source: &RelativePath) -> RelativePath
Given a source-relative path, return the sidecar file path (relative to project root).
Auto Trait Implementations§
impl Freeze for ColocatedLocator
impl RefUnwindSafe for ColocatedLocator
impl Send for ColocatedLocator
impl Sync for ColocatedLocator
impl Unpin for ColocatedLocator
impl UnsafeUnpin for ColocatedLocator
impl UnwindSafe for ColocatedLocator
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