Struct janetrs_version::JanetBuildConfig[][src]

pub struct JanetBuildConfig { /* fields omitted */ }

Janet configuration in the build.

Implementations

impl JanetBuildConfig[src]

pub const fn current() -> Self[src]

Get the current Janet build version.

pub const fn custom(major: u32, minor: u32, patch: u32, bits: u32) -> Self[src]

Create a custom JanetBuildConfig.

Mostly used to check if current version match a requirement for your code.

pub const fn version(&self) -> JanetVersion[src]

Return the version of the Janet.

pub const fn is_single_threaded(&self) -> bool[src]

Return true if Janet single threaded bit is set.

pub const fn is_nanbox(&self) -> bool[src]

Return true is Janet nanbox bit is set.

Trait Implementations

impl Clone for JanetBuildConfig[src]

impl Copy for JanetBuildConfig[src]

impl Debug for JanetBuildConfig[src]

impl Eq for JanetBuildConfig[src]

impl Hash for JanetBuildConfig[src]

impl PartialEq<JanetBuildConfig> for JanetBuildConfig[src]

impl StructuralEq for JanetBuildConfig[src]

impl StructuralPartialEq for JanetBuildConfig[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.