pub struct RockLayout {
pub rock_path: PathBuf,
pub etc: PathBuf,
pub lib: PathBuf,
pub src: PathBuf,
pub bin: PathBuf,
pub conf: PathBuf,
pub doc: PathBuf,
}
Expand description
Change-agnostic way of referencing various paths for a rock.
Fields§
§rock_path: PathBuf
The local installation directory.
Can be substituted in a rockspec’s build.build_variables
and build.install_variables
using $(PREFIX)
.
etc: PathBuf
The etc
directory, containing resources.
lib: PathBuf
The lib
directory, containing native libraries.
Can be substituted in a rockspec’s build.build_variables
and build.install_variables
using $(LIBDIR)
.
src: PathBuf
The src
directory, containing Lua sources.
Can be substituted in a rockspec’s build.build_variables
and build.install_variables
using $(LUADIR)
.
bin: PathBuf
The bin
directory, containing executables.
Can be substituted in a rockspec’s build.build_variables
and build.install_variables
using $(BINDIR)
.
This points to a global binary path at the root of the current tree by default.
conf: PathBuf
The etc/conf
directory, containing configuration files.
Can be substituted in a rockspec’s build.build_variables
and build.install_variables
using $(CONFDIR)
.
doc: PathBuf
The etc/doc
directory, containing documentation files.
Can be substituted in a rockspec’s build.build_variables
and build.install_variables
using $(DOCDIR)
.
Implementations§
Source§impl RockLayout
impl RockLayout
pub fn rockspec_path(&self) -> PathBuf
Trait Implementations§
Source§impl Debug for RockLayout
impl Debug for RockLayout
Source§impl PartialEq for RockLayout
impl PartialEq for RockLayout
Source§impl UserData for RockLayout
impl UserData for RockLayout
Source§fn add_fields<F: UserDataFields<Self>>(fields: &mut F)
fn add_fields<F: UserDataFields<Self>>(fields: &mut F)
Source§fn add_methods<M>(methods: &mut M)where
M: UserDataMethods<Self>,
fn add_methods<M>(methods: &mut M)where
M: UserDataMethods<Self>,
Source§fn register(registry: &mut UserDataRegistry<Self>)
fn register(registry: &mut UserDataRegistry<Self>)
impl StructuralPartialEq for RockLayout
Auto Trait Implementations§
impl Freeze for RockLayout
impl RefUnwindSafe for RockLayout
impl Send for RockLayout
impl Sync for RockLayout
impl Unpin for RockLayout
impl UnwindSafe for RockLayout
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
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
Source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
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 more