pub struct StackElement { /* private fields */ }
Implementations§
Source§impl StackElement
impl StackElement
pub fn new( lang_path: &str, lang_file: Option<&str>, lang_class: OptionLangObjectRef, lang_class_name: Option<&str>, lang_function_name: Option<&str>, module: Option<Rc<Module>>, ) -> Self
pub fn copy_with_pos(&self, pos: CodePosition) -> Self
pub fn lang_path(&self) -> &str
pub fn lang_file(&self) -> Option<&str>
pub fn pos(&self) -> CodePosition
pub fn lang_class(&self) -> Option<&LangObjectRef>
pub fn lang_class_name(&self) -> Option<&str>
pub fn lang_function_name(&self) -> Option<&str>
pub fn module(&self) -> Option<Rc<Module>>
Trait Implementations§
Source§impl Clone for StackElement
impl Clone for StackElement
Source§fn clone(&self) -> StackElement
fn clone(&self) -> StackElement
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 moreSource§impl Debug for StackElement
impl Debug for StackElement
Auto Trait Implementations§
impl !Freeze for StackElement
impl !RefUnwindSafe for StackElement
impl !Send for StackElement
impl !Sync for StackElement
impl Unpin for StackElement
impl !UnwindSafe for StackElement
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