pub struct Local { /* private fields */ }Expand description
RockSpec for a local rock installation, deserialized from a .rockspec file
Implementations§
Trait Implementations§
Source§impl Rockspec for Local
impl Rockspec for Local
fn package(&self) -> &Name
fn version(&self) -> &Version
fn description(&self) -> &Spec
fn supported_platforms(&self) -> &Support
fn lua(&self) -> &VersionReq
fn dependencies(&self) -> &PerPlatform<Vec<Spec>>
fn build_dependencies(&self) -> &PerPlatform<Vec<Spec>>
fn external_dependencies(&self) -> &PerPlatform<HashMap<String, Spec>>
fn test_dependencies(&self) -> &PerPlatform<Vec<Spec>>
fn build(&self) -> &PerPlatform<Spec>
fn test(&self) -> &PerPlatform<Spec>
fn source(&self) -> &PerPlatform<Remote>
fn deploy(&self) -> &PerPlatform<Spec>
fn build_mut(&mut self) -> &mut PerPlatform<Spec>
fn test_mut(&mut self) -> &mut PerPlatform<Spec>
fn source_mut(&mut self) -> &mut PerPlatform<Remote>
fn deploy_mut(&mut self) -> &mut PerPlatform<Spec>
fn format(&self) -> &Option<Format>
Source§fn to_lua_remote_rockspec_string(&self) -> Result<String, Error>
fn to_lua_remote_rockspec_string(&self) -> Result<String, Error>
Converts the rockspec to a string that can be uploaded to a luarocks server.
Source§fn binaries(&self) -> RockBinaries
fn binaries(&self) -> RockBinaries
Shorthand to extract the binaries that are part of the rockspec.
Auto Trait Implementations§
impl Forget for Local
impl Freeze for Local
impl RefUnwindSafe for Local
impl Send for Local
impl Sync for Local
impl Unpin for Local
impl UnsafeUnpin for Local
impl UnwindSafe for Local
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
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,
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> ⓘ
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 moreSource§impl<T> LuaVersionCompatibility for Twhere
T: Rockspec,
impl<T> LuaVersionCompatibility for Twhere
T: Rockspec,
Source§fn validate_lua_version(&self, version: &Version) -> Result<(), Error>
fn validate_lua_version(&self, version: &Version) -> Result<(), Error>
Ensures that the rockspec is compatible with the specified lua version.
Returns an error if the rockspec is not compatible.
Source§fn validate_lua_version_from_config(&self, config: &Config) -> Result<(), Error>
fn validate_lua_version_from_config(&self, config: &Config) -> Result<(), Error>
Ensures that the rockspec is compatible with the lua version established in the config.
Returns an error if the rockspec is not compatible.
Source§fn lua_version_matches(&self, config: &Config) -> Result<Version, Error>
fn lua_version_matches(&self, config: &Config) -> Result<Version, Error>
Ensures that the rockspec is compatible with the lua version established in the config,
and returns the lua version from the config if it is compatible.
Source§fn supports_lua_version(&self, lua_version: &Version) -> bool
fn supports_lua_version(&self, lua_version: &Version) -> bool
Checks if the rockspec supports the given lua version.
Source§fn lua_version(&self) -> Option<Version>
fn lua_version(&self) -> Option<Version>
Returns the lua version required by the rockspec.
impl<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
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.