pub enum SourceLocation {
File(PathBuf),
Remote(Arc<RemoteObject>),
}Expand description
A source as decoders open it.
Variants§
File(PathBuf)
A local file.
Remote(Arc<RemoteObject>)
A remote object, read by range through its request’s session.
Implementations§
Source§impl SourceLocation
impl SourceLocation
Trait Implementations§
Source§impl Clone for SourceLocation
impl Clone for SourceLocation
Source§impl Debug for SourceLocation
impl Debug for SourceLocation
impl Eq for SourceLocation
Source§impl From<&Path> for SourceLocation
impl From<&Path> for SourceLocation
Source§impl From<&PathBuf> for SourceLocation
impl From<&PathBuf> for SourceLocation
Source§impl From<&SourceLocation> for SourceLocation
impl From<&SourceLocation> for SourceLocation
Source§fn from(location: &SourceLocation) -> Self
fn from(location: &SourceLocation) -> Self
Converts to this type from the input type.
Source§impl From<PathBuf> for SourceLocation
impl From<PathBuf> for SourceLocation
Source§impl Hash for SourceLocation
impl Hash for SourceLocation
Auto Trait Implementations§
impl !RefUnwindSafe for SourceLocation
impl !UnwindSafe for SourceLocation
impl Forget for SourceLocation
impl Freeze for SourceLocationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<RemoteObject> is !null: Freeze,
PhantomData<ArcInner<RemoteObject>>: Freeze,
impl Move for SourceLocation
impl Send for SourceLocation
impl Sync for SourceLocation
impl Unpin for SourceLocation
impl UnsafeUnpin for SourceLocationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<RemoteObject> is !null: UnsafeUnpin,
PhantomData<ArcInner<RemoteObject>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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