Enum deno_graph::Resolution
source · pub enum Resolution {
None,
Ok(Box<ResolutionResolved>),
Err(Box<ResolutionError>),
}
Variants§
Implementations§
source§impl Resolution
impl Resolution
pub fn from_resolve_result( result: Result<ModuleSpecifier, ResolveError>, specifier_text: &str, range: Range ) -> Self
pub fn includes(&self, position: &Position) -> Option<&Range>
pub fn is_none(&self) -> bool
pub fn maybe_specifier(&self) -> Option<&ModuleSpecifier>
pub fn maybe_range(&self) -> Option<&Range>
pub fn ok(&self) -> Option<&ResolutionResolved>
pub fn err(&self) -> Option<&ResolutionError>
Trait Implementations§
source§impl Clone for Resolution
impl Clone for Resolution
source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
Returns a copy 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 Debug for Resolution
impl Debug for Resolution
source§impl Default for Resolution
impl Default for Resolution
source§impl PartialEq for Resolution
impl PartialEq for Resolution
source§fn eq(&self, other: &Resolution) -> bool
fn eq(&self, other: &Resolution) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Resolution
impl Serialize for Resolution
impl Eq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnwindSafe for Resolution
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.