[][src]Struct aloxide::RubySrc

pub struct 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]

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]

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 max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.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

impl Eq for RubySrc[src]

impl PartialOrd<RubySrc> for RubySrc[src]

impl PartialEq<RubySrc> for RubySrc[src]

impl Debug for RubySrc[src]

impl Hash for RubySrc[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for RubySrc

impl Sync for RubySrc

Blanket Implementations

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]