pub struct LoadResult {
pub loaded: Vec<(String, LuaComponent)>,
pub warnings: Vec<LoadWarning>,
}Expand description
Result of batch loading operation.
Contains both successfully loaded components and warnings for failures. This allows the application to continue even when some scripts fail to load.
Fields§
§loaded: Vec<(String, LuaComponent)>Successfully loaded components with their names.
warnings: Vec<LoadWarning>Warnings for scripts that failed to load.
Implementations§
Source§impl LoadResult
impl LoadResult
Sourcepub fn has_loaded(&self) -> bool
pub fn has_loaded(&self) -> bool
Returns true if any scripts were loaded.
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Returns true if any warnings occurred.
Sourcepub fn loaded_count(&self) -> usize
pub fn loaded_count(&self) -> usize
Returns the count of loaded scripts.
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Returns the count of warnings.
Trait Implementations§
Source§impl Debug for LoadResult
impl Debug for LoadResult
Source§impl Default for LoadResult
impl Default for LoadResult
Source§fn default() -> LoadResult
fn default() -> LoadResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadResult
impl !RefUnwindSafe for LoadResult
impl Send for LoadResult
impl Sync for LoadResult
impl Unpin for LoadResult
impl UnsafeUnpin for LoadResult
impl !UnwindSafe for LoadResult
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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