pub struct ResolutionCandidate { /* private fields */ }Expand description
A possible resource locator considered by the resolver.
Implementations§
Source§impl ResolutionCandidate
impl ResolutionCandidate
Sourcepub fn new(
uri: impl Into<String>,
confidence: Confidence,
evidence: Vec<ResolutionEvidence>,
) -> Result<Self>
pub fn new( uri: impl Into<String>, confidence: Confidence, evidence: Vec<ResolutionEvidence>, ) -> Result<Self>
Creates a candidate with an absolute URI and at least one evidence item.
§Errors
Returns ErrorKind::InvalidArgument when uri is invalid or relative,
or when evidence is empty.
Sourcepub const fn confidence(&self) -> Confidence
pub const fn confidence(&self) -> Confidence
Returns the deterministic confidence value.
Sourcepub fn evidence(&self) -> &[ResolutionEvidence]
pub fn evidence(&self) -> &[ResolutionEvidence]
Returns the inspectable supporting evidence.
Trait Implementations§
Source§impl Clone for ResolutionCandidate
impl Clone for ResolutionCandidate
Source§fn clone(&self) -> ResolutionCandidate
fn clone(&self) -> ResolutionCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResolutionCandidate
impl Debug for ResolutionCandidate
impl Eq for ResolutionCandidate
Source§impl PartialEq for ResolutionCandidate
impl PartialEq for ResolutionCandidate
Source§fn eq(&self, other: &ResolutionCandidate) -> bool
fn eq(&self, other: &ResolutionCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolutionCandidate
Auto Trait Implementations§
impl Freeze for ResolutionCandidate
impl RefUnwindSafe for ResolutionCandidate
impl Send for ResolutionCandidate
impl Sync for ResolutionCandidate
impl Unpin for ResolutionCandidate
impl UnsafeUnpin for ResolutionCandidate
impl UnwindSafe for ResolutionCandidate
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