pub struct RockLayoutConfig {
pub root: Option<PathBuf>,
pub etc: PathBuf,
pub opt_etc: PathBuf,
pub src: PathBuf,
pub lib: PathBuf,
pub conf: PathBuf,
pub doc: PathBuf,
}Expand description
Template configuration for a rock’s tree layout
Fields§
§root: Option<PathBuf>The root for relocated directories (etc, src).
If unset (the default), directories are placed in the package directory.
If set, it is a directory relative to the given Lua version’s install tree root.
With the --nvim preset, this is site/pack/lux.
etc: PathBufThe etc directory for non-optional packages
Default: etc With the --nvim preset, this is start
Note: If root is set, the package ID is appended.
opt_etc: PathBufThe etc directory for optional packages
Default: etc
With the --nvim preset, this is opt
Note: If root is set, the package ID is appended.
src: PathBufThe src directory name
Default: src
With the --nvim preset, this is lua
lib: PathBufThe lib directory name
Default: lib
conf: PathBufThe conf directory name
Default: conf
doc: PathBufThe doc directory name
Default: doc
Implementations§
Source§impl RockLayoutConfig
impl RockLayoutConfig
Sourcepub fn new_nvim_layout() -> Self
pub fn new_nvim_layout() -> Self
Creates a RockLayoutConfig for use with Neovim
root:site/pack/luxetc:startopt_etc:optsrc:lualib:lib
Trait Implementations§
Source§impl Clone for RockLayoutConfig
impl Clone for RockLayoutConfig
Source§fn clone(&self) -> RockLayoutConfig
fn clone(&self) -> RockLayoutConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RockLayoutConfig
impl Debug for RockLayoutConfig
Source§impl Default for RockLayoutConfig
impl Default for RockLayoutConfig
Source§impl<'de> Deserialize<'de> for RockLayoutConfig
impl<'de> Deserialize<'de> for RockLayoutConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for RockLayoutConfig
Source§impl PartialEq for RockLayoutConfig
impl PartialEq for RockLayoutConfig
Source§impl Serialize for RockLayoutConfig
impl Serialize for RockLayoutConfig
impl StructuralPartialEq for RockLayoutConfig
Auto Trait Implementations§
impl Freeze for RockLayoutConfig
impl RefUnwindSafe for RockLayoutConfig
impl Send for RockLayoutConfig
impl Sync for RockLayoutConfig
impl Unpin for RockLayoutConfig
impl UnsafeUnpin for RockLayoutConfig
impl UnwindSafe for RockLayoutConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreimpl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
WrappingSpan::make_wrapped to wrap an AST node in a span.