Struct anyscript_compiler::types::tuple::Tuple
source · pub struct Tuple<T1: Default + Display + Clone + Send + Sync, T2: Default + Display + Clone + Send + Sync> {
pub first: T1,
pub second: T2,
pub tuple: (T1, T2),
}
Fields§
§first: T1
§second: T2
§tuple: (T1, T2)
Implementations§
source§impl<T1: Default + Display + Clone + Send + Sync, T2: Default + Display + Clone + Send + Sync> Tuple<T1, T2>
impl<T1: Default + Display + Clone + Send + Sync, T2: Default + Display + Clone + Send + Sync> Tuple<T1, T2>
sourcepub fn set_second(&mut self, second: T2)
pub fn set_second(&mut self, second: T2)
Set the second value
pub fn get_first(&self) -> T1
pub fn get_second(&self) -> T2
pub fn first_to_str(&self) -> String
pub fn second_to_str(&self) -> String
pub fn first_to_cstr(&self) -> CString
pub fn second_to_cstr(&self) -> CString
Trait Implementations§
Auto Trait Implementations§
impl<T1, T2> Freeze for Tuple<T1, T2>
impl<T1, T2> RefUnwindSafe for Tuple<T1, T2>where
T1: RefUnwindSafe,
T2: RefUnwindSafe,
impl<T1, T2> Send for Tuple<T1, T2>
impl<T1, T2> Sync for Tuple<T1, T2>
impl<T1, T2> Unpin for Tuple<T1, T2>
impl<T1, T2> UnwindSafe for Tuple<T1, T2>where
T1: UnwindSafe,
T2: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more