pub struct TupleBuilder { /* private fields */ }Expand description
The parts a caller supplies, with the rest derived.
A builder rather than ten arguments, because eight of the ten calls in this workspace supply three of them and a function with seven defaulted parameters is a function nobody calls correctly.
Implementations§
Source§impl TupleBuilder
impl TupleBuilder
Sourcepub const fn sub_arch(self, sub_arch: SubArch) -> Self
pub const fn sub_arch(self, sub_arch: SubArch) -> Self
Set the baseline within the architecture family.
Sourcepub const fn endian(self, endian: Endian) -> Self
pub const fn endian(self, endian: Endian) -> Self
Set the byte order, overriding the architecture’s default.
Sourcepub const fn data_model(self, data_model: DataModel) -> Self
pub const fn data_model(self, data_model: DataModel) -> Self
Set the data model, overriding the one derived from the architecture and OS. The only
target in the matrix that needs this is x86_64-linux-gnux32.
Sourcepub const fn os_version(self, version: Version) -> Self
pub const fn os_version(self, version: Version) -> Self
Set the OS version, which is a deployment target on Darwin and a preview number on WASI.
Sourcepub const fn env_version(self, version: Version) -> Self
pub const fn env_version(self, version: Version) -> Self
Set the environment version, which is a glibc version or an Android API level.
Trait Implementations§
Source§impl Clone for TupleBuilder
impl Clone for TupleBuilder
Source§fn clone(&self) -> TupleBuilder
fn clone(&self) -> TupleBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TupleBuilder
Source§impl Debug for TupleBuilder
impl Debug for TupleBuilder
impl Eq for TupleBuilder
Source§impl PartialEq for TupleBuilder
impl PartialEq for TupleBuilder
impl StructuralPartialEq for TupleBuilder
Auto Trait Implementations§
impl Freeze for TupleBuilder
impl RefUnwindSafe for TupleBuilder
impl Send for TupleBuilder
impl Sync for TupleBuilder
impl Unpin for TupleBuilder
impl UnsafeUnpin for TupleBuilder
impl UnwindSafe for TupleBuilder
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