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