pub struct Scope<'s> { /* private fields */ }Expand description
The names in scope (primitives plus, progressively, let-bound names).
A flat name set — there is no real namespacing, so a module’s qualified
names ("M.x") are just ordinary strings that happen to contain a dot
(see the module doc comment on qualify_key).
Implementations§
Source§impl<'s> Scope<'s>
impl<'s> Scope<'s>
pub fn new( store: &'s SymbolStore, names: impl IntoIterator<Item = String>, ) -> Scope<'s>
Sourcepub fn new_with_version(
store: &'s SymbolStore,
names: impl IntoIterator<Item = String>,
version: RustyfiVersion,
) -> Scope<'s>
pub fn new_with_version( store: &'s SymbolStore, names: impl IntoIterator<Item = String>, version: RustyfiVersion, ) -> Scope<'s>
Like Scope::new but elaborating under an explicit source version —
the V0_1 compile path (lib.rs) uses this so the 0.1 labeled-optional
nodes are accepted.
Trait Implementations§
Auto Trait Implementations§
impl<'s> !RefUnwindSafe for Scope<'s>
impl<'s> !Send for Scope<'s>
impl<'s> !Sync for Scope<'s>
impl<'s> !UnwindSafe for Scope<'s>
impl<'s> Freeze for Scope<'s>
impl<'s> Unpin for Scope<'s>
impl<'s> UnsafeUnpin for Scope<'s>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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