[−][src]Struct aloxide::RubySrc
A path to Ruby's source code.
Methods
impl RubySrc
[src]
pub fn new<P: AsRef<Path> + ?Sized>(dir: &P) -> &Self
[src]
Creates a new instance targeting dir
.
pub fn downloader<'a, P: AsRef<Path> + ?Sized>(
version: &'a Version,
parent: &'a P
) -> RubySrcDownloader<'a>
[src]
version: &'a Version,
parent: &'a P
) -> RubySrcDownloader<'a>
Returns a downloader for version
targeted towards self
.
pub fn as_path(&self) -> &Path
[src]
Returns the directory path.
pub fn into_path(self: Box<Self>) -> Box<Path>
[src]
Converts self
into a Path
.
pub fn into_path_buf(self: Box<Self>) -> PathBuf
[src]
Converts self
into a PathBuf
.
pub fn builder<'a>(
&'a self,
out_dir: impl Into<PathBuf>,
target: impl AsRef<str>
) -> RubyBuilder<'a>
[src]
&'a self,
out_dir: impl Into<PathBuf>,
target: impl AsRef<str>
) -> RubyBuilder<'a>
Creates a new builder for Ruby's sources.
pub fn make(&self, target: impl AsRef<str>) -> Command
[src]
Returns a make
command suitable for target
to run in this directory.
Trait Implementations
impl AsRef<Path> for RubySrc
[src]
impl Ord for RubySrc
[src]
fn cmp(&self, other: &RubySrc) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
🔬 This is a nightly-only experimental API. (
clamp
)Restrict a value to a certain interval. Read more