pub struct JanetBuildConfig { /* private fields */ }
Expand description
Janet configuration in the build.
Implementations§
Source§impl JanetBuildConfig
impl JanetBuildConfig
Sourcepub const fn custom(major: u32, minor: u32, patch: u32, bits: u32) -> Self
pub const fn custom(major: u32, minor: u32, patch: u32, bits: u32) -> Self
Create a custom JanetBuildConfig
.
Mostly used to check if current version match a requirement for your code.
Sourcepub const fn version(&self) -> JanetVersion
pub const fn version(&self) -> JanetVersion
Return the version of the Janet.
Sourcepub const fn is_single_threaded(&self) -> bool
pub const fn is_single_threaded(&self) -> bool
Return true
if Janet single threaded bit is set.
Trait Implementations§
Source§impl Clone for JanetBuildConfig
impl Clone for JanetBuildConfig
Source§fn clone(&self) -> JanetBuildConfig
fn clone(&self) -> JanetBuildConfig
Returns a copy 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 JanetBuildConfig
impl Debug for JanetBuildConfig
Source§impl Hash for JanetBuildConfig
impl Hash for JanetBuildConfig
Source§impl PartialEq for JanetBuildConfig
impl PartialEq for JanetBuildConfig
impl Copy for JanetBuildConfig
impl Eq for JanetBuildConfig
impl StructuralPartialEq for JanetBuildConfig
Auto Trait Implementations§
impl Freeze for JanetBuildConfig
impl RefUnwindSafe for JanetBuildConfig
impl Send for JanetBuildConfig
impl Sync for JanetBuildConfig
impl Unpin for JanetBuildConfig
impl UnwindSafe for JanetBuildConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)