pub struct RemoteLuaRockspec { /* private fields */ }Implementations§
Source§impl RemoteLuaRockspec
impl RemoteLuaRockspec
pub fn new(rockspec_content: &str) -> Result<Self, LuaRockspecError>
pub fn from_package_and_source_spec( package_spec: PackageSpec, source_spec: RockSourceSpec, ) -> Self
Trait Implementations§
Source§impl Clone for RemoteLuaRockspec
impl Clone for RemoteLuaRockspec
Source§fn clone(&self) -> RemoteLuaRockspec
fn clone(&self) -> RemoteLuaRockspec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RemoteLuaRockspec
impl Debug for RemoteLuaRockspec
Source§impl HasIntegrity for RemoteLuaRockspec
impl HasIntegrity for RemoteLuaRockspec
Source§impl Rockspec for RemoteLuaRockspec
impl Rockspec for RemoteLuaRockspec
type Error = Infallible
fn package(&self) -> &PackageName
fn version(&self) -> &PackageVersion
fn description(&self) -> &RockDescription
fn supported_platforms(&self) -> &PlatformSupport
fn lua(&self) -> &PackageVersionReq
fn dependencies(&self) -> &PerPlatform<Vec<LuaDependencySpec>>
fn build_dependencies(&self) -> &PerPlatform<Vec<LuaDependencySpec>>
fn external_dependencies( &self, ) -> &PerPlatform<HashMap<String, ExternalDependencySpec>>
fn test_dependencies(&self) -> &PerPlatform<Vec<LuaDependencySpec>>
fn build(&self) -> &PerPlatform<BuildSpec>
fn test(&self) -> &PerPlatform<TestSpec>
fn source(&self) -> &PerPlatform<RemoteRockSource>
fn deploy(&self) -> &PerPlatform<DeploySpec>
fn build_mut(&mut self) -> &mut PerPlatform<BuildSpec>
fn test_mut(&mut self) -> &mut PerPlatform<TestSpec>
fn source_mut(&mut self) -> &mut PerPlatform<RemoteRockSource>
fn deploy_mut(&mut self) -> &mut PerPlatform<DeploySpec>
fn format(&self) -> &Option<RockspecFormat>
Source§fn to_lua_remote_rockspec_string(&self) -> Result<String, Self::Error>
fn to_lua_remote_rockspec_string(&self) -> Result<String, Self::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.
Source§impl UserData for RemoteLuaRockspec
impl UserData for RemoteLuaRockspec
Source§fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
Source§fn add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
fn add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
Adds custom fields specific to this userdata.
Source§fn register(registry: &mut UserDataRegistry<Self>)
fn register(registry: &mut UserDataRegistry<Self>)
Registers this type for use in Lua. Read more
Auto Trait Implementations§
impl Freeze for RemoteLuaRockspec
impl RefUnwindSafe for RemoteLuaRockspec
impl Send for RemoteLuaRockspec
impl Sync for RemoteLuaRockspec
impl Unpin for RemoteLuaRockspec
impl UnwindSafe for RemoteLuaRockspec
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> 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> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.
unsafe fn push_into_stack_multi(self, lua: &RawLua) -> Result<i32, Error>
Source§impl<T> LuaVersionCompatibility for Twhere
T: Rockspec,
impl<T> LuaVersionCompatibility for Twhere
T: Rockspec,
Source§fn validate_lua_version(
&self,
version: &LuaVersion,
) -> Result<(), LuaVersionError>
fn validate_lua_version( &self, version: &LuaVersion, ) -> Result<(), LuaVersionError>
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<(), LuaVersionError>
fn validate_lua_version_from_config( &self, config: &Config, ) -> Result<(), LuaVersionError>
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<LuaVersion, LuaVersionError>
fn lua_version_matches( &self, config: &Config, ) -> Result<LuaVersion, LuaVersionError>
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: &LuaVersion) -> bool
fn supports_lua_version(&self, lua_version: &LuaVersion) -> bool
Checks if the rockspec supports the given lua version.
Source§fn lua_version(&self) -> Option<LuaVersion>
fn lua_version(&self) -> Option<LuaVersion>
Returns the lua version required by the rockspec.
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,
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.