struct Resolver<'a> {
aliases: &'a mut IndexMap<String, HostAlias>,
todo: HashSet<usize>,
deps_stack: IndexSet<usize>,
}Expand description
Helper struct for HostAliases::resolve_all
Fields§
§aliases: &'a mut IndexMap<String, HostAlias>§todo: HashSet<usize>The indices of Resolver::aliases that still have to be resolved,
including the alias(es) currently under consideration.
deps_stack: IndexSet<usize>The indices of Resolver::aliases that are currently being resolved.
Implementations§
Source§impl<'a> Resolver<'a>
impl<'a> Resolver<'a>
fn new(aliases: &'a mut IndexMap<String, HostAlias>) -> Self
fn resolve_all(self) -> Result<()>
fn resolve_new_one(&mut self, hai: usize) -> Result<()>
fn deps_stack_step(&mut self) -> Result<()>
Sourcefn try_resolve_ha(&mut self, hai: usize) -> Result<Result<(), usize>>
fn try_resolve_ha(&mut self, hai: usize) -> Result<Result<(), usize>>
Tries to resolve the named host alias. If this host alias
depends on another unresolved host alias, returns the index of that alias in Ok(Err(...)).
fn try_dealias_url_pwa(&mut self, url: UrlPwa) -> Result<UrlPwa, usize>
Auto Trait Implementations§
impl<'a> Freeze for Resolver<'a>
impl<'a> RefUnwindSafe for Resolver<'a>
impl<'a> Send for Resolver<'a>
impl<'a> Sync for Resolver<'a>
impl<'a> Unpin for Resolver<'a>
impl<'a> UnsafeUnpin for Resolver<'a>
impl<'a> !UnwindSafe for Resolver<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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