pub struct DebugSource<'a> {
pub source: Option<Cow<'a, str>>,
pub short_src: Option<Cow<'a, str>>,
pub line_defined: Option<usize>,
pub last_line_defined: Option<usize>,
pub what: &'static str,
}Fields§
§source: Option<Cow<'a, str>>Source of the chunk that created the function.
short_src: Option<Cow<'a, str>>A “printable” version of source, to be used in error messages.
line_defined: Option<usize>The line number where the definition of the function starts.
last_line_defined: Option<usize>The line number where the definition of the function ends (not set by Luau).
what: &'static strA string Lua if the function is a Lua function, C if it is a C function, main if it is
the main part of a chunk.
Trait Implementations§
Source§impl<'a> Clone for DebugSource<'a>
impl<'a> Clone for DebugSource<'a>
Source§fn clone(&self) -> DebugSource<'a>
fn clone(&self) -> DebugSource<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for DebugSource<'a>
impl<'a> RefUnwindSafe for DebugSource<'a>
impl<'a> Send for DebugSource<'a>
impl<'a> Sync for DebugSource<'a>
impl<'a> Unpin for DebugSource<'a>
impl<'a> UnwindSafe for DebugSource<'a>
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§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