Enum artichoke_core::load::Loaded
source · pub enum Loaded {
Success,
}
Expand description
The side effect from a call to Kernel#load
.
In Ruby, load
is stateless. All sources passed to load
are loaded for
every method call.
Each time a file is loaded, it is parsed and executed by the
interpreter. If the file executes without raising an error, the file is
successfully loaded and Rust callers can expect a Loaded::Success
variant.
If the file raises an exception as it is required, Rust callers can expect
an Err
variant. The file is not added to the set of loaded features.
See the documentation of load_source
for more details.
Variants§
Success
Kernel#load
succeeded at loading the file.
This variant has value true
when converting to a Boolean as returned
by Kernel#load
.
Trait Implementations§
source§impl Ord for Loaded
impl Ord for Loaded
source§impl PartialOrd for Loaded
impl PartialOrd for Loaded
impl Copy for Loaded
impl Eq for Loaded
impl StructuralPartialEq for Loaded
Auto Trait Implementations§
impl Freeze for Loaded
impl RefUnwindSafe for Loaded
impl Send for Loaded
impl Sync for Loaded
impl Unpin for Loaded
impl UnwindSafe for Loaded
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)