pub struct EnvBindings {
pub env: String,
/* private fields */
}Expand description
One environment’s binding table: declared dependencies plus implicit
search/foundry entries, optionally enriched from a BindingCache.
Fields§
§env: StringImplementations§
Source§impl EnvBindings
impl EnvBindings
Sourcepub fn of_env(
name: &str,
env: &Environment,
cache: Option<&BindingCache>,
) -> EnvBindings
pub fn of_env( name: &str, env: &Environment, cache: Option<&BindingCache>, ) -> EnvBindings
Build the binding table for one environment. Workspace-free — takes
the environment directly, so callers that already have it (and
tests) don’t need a full Workspace.
Sourcepub fn of(
env_name: &str,
env: &Environment,
cache: Option<&BindingCache>,
) -> EnvBindings
pub fn of( env_name: &str, env: &Environment, cache: Option<&BindingCache>, ) -> EnvBindings
Alias for EnvBindings::of_env. Loads nothing itself — pass an
already-loaded BindingCache as cache.
pub fn get(&self, name: &str) -> Option<&BindingEntry>
pub fn iter(&self) -> impl Iterator<Item = &BindingEntry>
Sourcepub fn find_physical(
&self,
wanted: Wanted,
physical: &str,
) -> Option<&BindingEntry>
pub fn find_physical( &self, wanted: Wanted, physical: &str, ) -> Option<&BindingEntry>
The entry whose kind accepts wanted and whose physical name equals
physical (case-insensitive).
Trait Implementations§
Source§impl Clone for EnvBindings
impl Clone for EnvBindings
Source§fn clone(&self) -> EnvBindings
fn clone(&self) -> EnvBindings
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 moreAuto Trait Implementations§
impl Freeze for EnvBindings
impl RefUnwindSafe for EnvBindings
impl Send for EnvBindings
impl Sync for EnvBindings
impl Unpin for EnvBindings
impl UnsafeUnpin for EnvBindings
impl UnwindSafe for EnvBindings
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