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
sourceimpl Ord for Loaded
impl Ord for Loaded
sourceimpl PartialOrd<Loaded> for Loaded
impl PartialOrd<Loaded> for Loaded
sourcefn partial_cmp(&self, other: &Loaded) -> Option<Ordering>
fn partial_cmp(&self, other: &Loaded) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Loaded
impl Eq for Loaded
impl StructuralEq for Loaded
impl StructuralPartialEq for Loaded
Auto Trait Implementations
impl RefUnwindSafe for Loaded
impl Send for Loaded
impl Sync for Loaded
impl Unpin for Loaded
impl UnwindSafe for Loaded
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more