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