pub struct LocalBindingTimeline { /* private fields */ }Expand description
When each local name of one callable is in effect.
entry_bindings are bound over the whole callable (parameters, numbered
block parameters, inherited captures). activations map an assigned name
to the earliest byte offset of an assignment target with that name; the
name reads as a local at any byte at or after that offset.
Implementations§
Source§impl LocalBindingTimeline
impl LocalBindingTimeline
pub fn is_active_at(&self, name: &str, source_byte: usize) -> bool
Sourcepub fn activations(&self) -> impl Iterator<Item = (&str, usize)>
pub fn activations(&self) -> impl Iterator<Item = (&str, usize)>
Every assignment-activated name with the byte offset at which it becomes active, in unspecified order.
pub fn active_names_at(&self, source_byte: usize) -> Vec<&str>
Trait Implementations§
Source§impl Clone for LocalBindingTimeline
impl Clone for LocalBindingTimeline
Source§fn clone(&self) -> LocalBindingTimeline
fn clone(&self) -> LocalBindingTimeline
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 moreSource§impl Default for LocalBindingTimeline
impl Default for LocalBindingTimeline
Source§fn default() -> LocalBindingTimeline
fn default() -> LocalBindingTimeline
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalBindingTimeline
impl RefUnwindSafe for LocalBindingTimeline
impl Send for LocalBindingTimeline
impl Sync for LocalBindingTimeline
impl Unpin for LocalBindingTimeline
impl UnsafeUnpin for LocalBindingTimeline
impl UnwindSafe for LocalBindingTimeline
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