Struct NullableF64Vec
pub struct NullableF64Vec(pub Vec<f64>);Expand description
A Vec<f64> that round-trips non-finite entries as JSON null.
Mirrors kurobako’s nullable_f64_vec: kurobako’s Params serialize this
way, and its Values serialize non-finite objectives as null too, so the
solver both emits and accepts the nullable encoding through this one type.
Tuple Fields§
§0: Vec<f64>Trait Implementations§
§impl Clone for NullableF64Vec
impl Clone for NullableF64Vec
§fn clone(&self) -> NullableF64Vec
fn clone(&self) -> NullableF64Vec
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 more§impl Debug for NullableF64Vec
impl Debug for NullableF64Vec
§impl Default for NullableF64Vec
impl Default for NullableF64Vec
§fn default() -> NullableF64Vec
fn default() -> NullableF64Vec
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for NullableF64Vec
impl<'de> Deserialize<'de> for NullableF64Vec
§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for NullableF64Vec
impl PartialEq for NullableF64Vec
§impl Serialize for NullableF64Vec
impl Serialize for NullableF64Vec
impl StructuralPartialEq for NullableF64Vec
Auto Trait Implementations§
impl Freeze for NullableF64Vec
impl RefUnwindSafe for NullableF64Vec
impl Send for NullableF64Vec
impl Sync for NullableF64Vec
impl Unpin for NullableF64Vec
impl UnsafeUnpin for NullableF64Vec
impl UnwindSafe for NullableF64Vec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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