pub struct TextRequirer { /* private fields */ }Available on crate feature
luau only.Expand description
The standard implementation of Luau require-by-string navigation.
Implementations§
Source§impl TextRequirer
impl TextRequirer
Trait Implementations§
Source§impl Debug for TextRequirer
Available on crate features luau only.
impl Debug for TextRequirer
Available on crate features
luau only.Source§impl Default for TextRequirer
Available on crate features luau only.
impl Default for TextRequirer
Available on crate features
luau only.Source§fn default() -> TextRequirer
fn default() -> TextRequirer
Returns the “default value” for a type. Read more
Source§impl Require for TextRequirer
Available on crate features luau only.
impl Require for TextRequirer
Available on crate features
luau only.Source§fn is_require_allowed(&self, chunk_name: &str) -> bool
fn is_require_allowed(&self, chunk_name: &str) -> bool
Available on crate feature
luau only.Returns
true if “require” is permitted for the given chunk name.Source§fn reset(&mut self, chunk_name: &str) -> StdResult<(), NavigateError>
fn reset(&mut self, chunk_name: &str) -> StdResult<(), NavigateError>
Available on crate feature
luau only.Resets the internal state to point at the requirer module.
Source§fn jump_to_alias(&mut self, path: &str) -> StdResult<(), NavigateError>
fn jump_to_alias(&mut self, path: &str) -> StdResult<(), NavigateError>
Available on crate feature
luau only.Resets the internal state to point at an aliased module. Read more
Source§fn to_child(&mut self, name: &str) -> StdResult<(), NavigateError>
fn to_child(&mut self, name: &str) -> StdResult<(), NavigateError>
Available on crate feature
luau only.Navigate to the given child directory.
Source§fn has_module(&self) -> bool
fn has_module(&self) -> bool
Available on crate feature
luau only.Returns whether the context is currently pointing at a module
Source§fn cache_key(&self) -> String
fn cache_key(&self) -> String
Available on crate feature
luau only.Provides a cache key representing the current module. Read more
Source§fn has_config(&self) -> bool
fn has_config(&self) -> bool
Available on crate feature
luau only.Returns whether a configuration is present in the current context.
Auto Trait Implementations§
impl Freeze for TextRequirer
impl RefUnwindSafe for TextRequirer
impl Send for TextRequirer
impl Sync for TextRequirer
impl Unpin for TextRequirer
impl UnwindSafe for TextRequirer
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> 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