pub enum Understanding {
NotUnderstood,
Understood {
imports: bool,
},
}Expand description
Whether the code is read whole (see understand).
Variants§
NotUnderstood
Something in the code is outside the allow-list: it does not parse, holds no statement, or has a function, a loop, a call or an import the reader has no row for.
Understood
The code is a few plain statements that compute, and its only acts are
the ones read gives.
Fields
§
imports: boolWhether the code may load a module, which looks in the folder the
code runs in first: all Python code does, with or without an
import (an uncaught exception imports traceback), so it is
understood only when that folder is the caller’s own. JavaScript
that is understood has no import at all.
Trait Implementations§
Source§impl Clone for Understanding
impl Clone for Understanding
impl Copy for Understanding
Source§impl Debug for Understanding
impl Debug for Understanding
impl Eq for Understanding
Source§impl PartialEq for Understanding
impl PartialEq for Understanding
impl StructuralPartialEq for Understanding
Auto Trait Implementations§
impl Forget for Understanding
impl Freeze for Understanding
impl Move for Understanding
impl RefUnwindSafe for Understanding
impl Send for Understanding
impl Sync for Understanding
impl Unpin for Understanding
impl UnsafeUnpin for Understanding
impl UnwindSafe for Understanding
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