pub enum FnWithArgsOrT<const N: usize, T> {
T(T),
FnWithArgs(FnWithArgs<N>),
}
Variants§
T(T)
FnWithArgs(FnWithArgs<N>)
Implementations§
Source§impl<const N: usize, T: for<'a> Deserialize<'a>> FnWithArgsOrT<N, T>
impl<const N: usize, T: for<'a> Deserialize<'a>> FnWithArgsOrT<N, T>
pub fn rationalise_1_level(obj: &JsValue, name: &'static str)
pub fn rationalise_2_levels(obj: &JsValue, name: (&'static str, &'static str))
Trait Implementations§
Source§impl<const N: usize, T: Clone> Clone for FnWithArgsOrT<N, T>
impl<const N: usize, T: Clone> Clone for FnWithArgsOrT<N, T>
Source§fn clone(&self) -> FnWithArgsOrT<N, T>
fn clone(&self) -> FnWithArgsOrT<N, T>
Returns a duplicate 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<'de, const N: usize, T> Deserialize<'de> for FnWithArgsOrT<N, T>where
T: Deserialize<'de>,
impl<'de, const N: usize, T> Deserialize<'de> for FnWithArgsOrT<N, T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize, T> From<FnWithArgs<N>> for FnWithArgsOrT<N, T>
impl<const N: usize, T> From<FnWithArgs<N>> for FnWithArgsOrT<N, T>
Source§fn from(value: FnWithArgs<N>) -> Self
fn from(value: FnWithArgs<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize, T: Into<BoolString>> From<T> for FnWithArgsOrT<N, BoolString>
impl<const N: usize, T: Into<BoolString>> From<T> for FnWithArgsOrT<N, BoolString>
Source§impl<const N: usize, T: Into<NumberString>> From<T> for FnWithArgsOrT<N, NumberString>
impl<const N: usize, T: Into<NumberString>> From<T> for FnWithArgsOrT<N, NumberString>
Source§impl<const N: usize, T: Ord> Ord for FnWithArgsOrT<N, T>
impl<const N: usize, T: Ord> Ord for FnWithArgsOrT<N, T>
Source§fn cmp(&self, other: &FnWithArgsOrT<N, T>) -> Ordering
fn cmp(&self, other: &FnWithArgsOrT<N, T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const N: usize, T: PartialOrd> PartialOrd for FnWithArgsOrT<N, T>
impl<const N: usize, T: PartialOrd> PartialOrd for FnWithArgsOrT<N, T>
impl<const N: usize, T: Eq> Eq for FnWithArgsOrT<N, T>
impl<const N: usize, T> StructuralPartialEq for FnWithArgsOrT<N, T>
Auto Trait Implementations§
impl<const N: usize, T> Freeze for FnWithArgsOrT<N, T>where
T: Freeze,
impl<const N: usize, T> RefUnwindSafe for FnWithArgsOrT<N, T>where
T: RefUnwindSafe,
impl<const N: usize, T> Send for FnWithArgsOrT<N, T>where
T: Send,
impl<const N: usize, T> Sync for FnWithArgsOrT<N, T>where
T: Sync,
impl<const N: usize, T> Unpin for FnWithArgsOrT<N, T>where
T: Unpin,
impl<const N: usize, T> UnwindSafe for FnWithArgsOrT<N, T>where
T: 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