pub enum Class {
Bound(String),
Shared(String, Vec<String>),
Leak {
binding: String,
envs: Vec<String>,
},
Unbound,
External,
}Expand description
How a FoundRef relates to this_env’s declared bindings.
Variants§
Bound(String)
Bound to a declared (or implicit) binding in this environment, named
String, and not bound anywhere else.
Bound in this environment (named String), and also bound to the
same physical resource in the listed other environments.
Leak
Not bound in this environment, but bound (to binding) in the listed
other environments — the reference “leaked” a value that belongs to
another environment.
Unbound
Not bound anywhere, and not an Api reference (so not presumed
external either).
External
An Api reference bound nowhere — presumed to be a genuinely
external, environment-independent endpoint.
Trait Implementations§
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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