pub struct FileNavigationContext { /* private fields */ }Expand description
Port of struct FileNavigationContext : Luau::Require::NavigationContext
(CLI/include/Luau/AnalyzeRequirer.h).
The C++ : NavigationContext base relationship is expressed in Rust by
implementing luaur_require::records::navigation_context::NavigationContextTrait
for this type (see methods/file_navigation_context_navigation_context_trait.rs),
rather than by embedding the (non-constructible-from-here) base struct.
Implementations§
Trait Implementations§
Source§fn luau_config_init(&self) -> Option<Rc<dyn Fn(*mut lua_State)>>
fn luau_config_init(&self) -> Option<Rc<dyn Fn(*mut lua_State)>>
C++ navigationContext.luauConfigInit = [&info](lua_State* L) { lua_setthreaddata(L, &info); };
(CLI/src/Analyze.cpp:194-197).
Source§fn luau_config_interrupt(
&self,
) -> Option<unsafe extern "C-unwind" fn(l: *mut lua_State, gc: c_int)>
fn luau_config_interrupt( &self, ) -> Option<unsafe extern "C-unwind" fn(l: *mut lua_State, gc: c_int)>
C++ navigationContext.luauConfigInterrupt = [](lua_State* L, int gc) { ... };
(CLI/src/Analyze.cpp:198-205) — identical body to the config-resolver interrupt.
fn reset_to_requirer(&mut self) -> NavigateResult
fn jump_to_alias(&mut self, path: &str) -> NavigateResult
fn to_parent(&mut self) -> NavigateResult
fn to_child(&mut self, component: &str) -> NavigateResult
fn get_config_status(&self) -> ConfigStatus
fn get_config_behavior(&self) -> ConfigBehavior
fn get_alias(&self, alias: &str) -> Option<String>
fn get_config(&self) -> Option<String>
fn to_alias_override(&mut self, _alias_unprefixed: &str) -> NavigateResult
fn to_alias_fallback(&mut self, _alias_unprefixed: &str) -> NavigateResult
Auto Trait Implementations§
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