pub struct FnScope {
pub fn_name: String,
pub declare_map: DeclareGraph,
/* private fields */
}
Expand description
a scope that represents a fn’s local scope
[DeclareMap
] is used to picking overloads, declare var’s types, etc
un processed ast move into this struct and then become mir::Statements
, mir misses
a part of type information, and fn_call is not point to monomorphic fn
then [DeclareMap
] will declare them and output py_ir::Statements
, or a Error
will be thrown
Fields§
§fn_name: String
§declare_map: DeclareGraph
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FnScope
impl RefUnwindSafe for FnScope
impl !Send for FnScope
impl !Sync for FnScope
impl Unpin for FnScope
impl UnwindSafe for FnScope
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> 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