#[repr(transparent)]pub struct NixList(Rc<Vec<Value>>);
Tuple Fields§
§0: Rc<Vec<Value>>
Implementations§
source§impl NixList
impl NixList
pub fn len(&self) -> usize
pub fn get(&self, i: usize) -> Option<&Value>
pub fn is_empty(&self) -> bool
pub fn construct(count: usize, stack_slice: Vec<Value>) -> Self
pub fn iter(&self) -> Iter<'_, Value>
pub fn ptr_eq(&self, other: &Self) -> bool
pub fn into_inner(self) -> Vec<Value>
Trait Implementations§
source§impl Arbitrary for NixList
impl Arbitrary for NixList
§type Parameters = <Value as Arbitrary>::Parameters
type Parameters = <Value as Arbitrary>::Parameters
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<NixList>
type Strategy = BoxedStrategy<NixList>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
source§impl<'de> Deserialize<'de> for NixList
impl<'de> Deserialize<'de> for NixList
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<'a> IntoIterator for &'a NixList
impl<'a> IntoIterator for &'a NixList
source§impl IntoIterator for NixList
impl IntoIterator for NixList
Auto Trait Implementations§
impl Freeze for NixList
impl !RefUnwindSafe for NixList
impl !Send for NixList
impl !Sync for NixList
impl Unpin for NixList
impl !UnwindSafe for NixList
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