pub struct DeclDepencies {
pub decls_decps: HashMap<Identifier, Register>,
}
Expand description
Represents a set of declaration dependencies
In JavaScript there a severeal dependencies like document
, window
or setInterval
.
The usage these of as well as their expected register postion is tracked in this object.
Fields§
§decls_decps: HashMap<Identifier, Register>
Implementations§
Source§impl DeclDepencies
impl DeclDepencies
pub fn new() -> Self
pub fn add_decl_dep(&mut self, ident: Identifier, reg: Register)
pub fn try_get_dep(&self, ident: &Identifier) -> Option<&Register>
Trait Implementations§
Source§impl Clone for DeclDepencies
impl Clone for DeclDepencies
Source§fn clone(&self) -> DeclDepencies
fn clone(&self) -> DeclDepencies
Returns a duplicate of the value. Read more
1.0.0 · 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 DeclDepencies
impl RefUnwindSafe for DeclDepencies
impl Send for DeclDepencies
impl Sync for DeclDepencies
impl Unpin for DeclDepencies
impl UnwindSafe for DeclDepencies
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> 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