#[repr(C)]pub struct CStackList<H, T: CStackListHeadLimit>(pub T, pub H);Expand description
A list using a guaranteed memory layout (repr(C)), with tail stored first so appending items
does not change the memory layout of prior items.
Cloning copies each field according to its Clone contract. Equality compares
lengths and corresponding logical fields, independently of physical layout.
§Examples
use cel_runtime::IntoCStackList;
let list = (String::from("owned"), 7u8).into_c_stack_list();
assert_eq!(list, list.clone());Tuple Fields§
§0: T§1: HTrait Implementations§
Source§impl<H: 'static, T: CStackListHeadLimit> CStackListHeadLimit for CStackList<H, T>
impl<H: 'static, T: CStackListHeadLimit> CStackListHeadLimit for CStackList<H, T>
Source§const HEAD_LIMIT: usize
const HEAD_LIMIT: usize
Source§impl<H: 'static, T: CStackListHeadLimit> CStackListHeadPadded for CStackList<H, T>
impl<H: 'static, T: CStackListHeadLimit> CStackListHeadPadded for CStackList<H, T>
Source§const HEAD_PADDED: bool
const HEAD_PADDED: bool
Source§impl<H: Clone, T: Clone + CStackListHeadLimit> Clone for CStackList<H, T>
impl<H: Clone, T: Clone + CStackListHeadLimit> Clone for CStackList<H, T>
Source§impl<H, T> Debug for CStackList<H, T>
impl<H, T> Debug for CStackList<H, T>
Source§impl<H: 'static, T: List + CStackListHeadLimit, Idx> Index<Idx> for CStackList<H, T>
impl<H: 'static, T: List + CStackListHeadLimit, Idx> Index<Idx> for CStackList<H, T>
Source§impl<A: 'static> IntoRustTuple for CStackList<A, CNil<()>>
impl<A: 'static> IntoRustTuple for CStackList<A, CNil<()>>
Source§impl<A: 'static, B: 'static> IntoRustTuple for CStackList<A, CStackList<B, CNil<()>>>
impl<A: 'static, B: 'static> IntoRustTuple for CStackList<A, CStackList<B, CNil<()>>>
Source§impl<A: 'static, B: 'static, C: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CNil<()>>>>
impl<A: 'static, B: 'static, C: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CNil<()>>>>
Source§impl<A: 'static, B: 'static, C: 'static, D: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CNil<()>>>>>
impl<A: 'static, B: 'static, C: 'static, D: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CNil<()>>>>>
Source§fn into_rust_tuple(self) -> Self::Tuple
fn into_rust_tuple(self) -> Self::Tuple
Moves the canonical fields into their corresponding native tuple positions.
- Complexity: O(n) field moves for n fields, without allocation.
Source§type Tuple = (A, B, C, D)
type Tuple = (A, B, C, D)
Source§impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CNil<()>>>>>>
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CNil<()>>>>>>
Source§fn into_rust_tuple(self) -> Self::Tuple
fn into_rust_tuple(self) -> Self::Tuple
Moves the canonical fields into their corresponding native tuple positions.
- Complexity: O(n) field moves for n fields, without allocation.
Source§type Tuple = (A, B, C, D, E)
type Tuple = (A, B, C, D, E)
Source§impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CNil<()>>>>>>>
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CNil<()>>>>>>>
Source§fn into_rust_tuple(self) -> Self::Tuple
fn into_rust_tuple(self) -> Self::Tuple
Moves the canonical fields into their corresponding native tuple positions.
- Complexity: O(n) field moves for n fields, without allocation.
Source§type Tuple = (A, B, C, D, E, F)
type Tuple = (A, B, C, D, E, F)
Source§impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CNil<()>>>>>>>>
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CNil<()>>>>>>>>
Source§fn into_rust_tuple(self) -> Self::Tuple
fn into_rust_tuple(self) -> Self::Tuple
Moves the canonical fields into their corresponding native tuple positions.
- Complexity: O(n) field moves for n fields, without allocation.
Source§type Tuple = (A, B, C, D, E, F, G)
type Tuple = (A, B, C, D, E, F, G)
Source§impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CStackList<H, CNil<()>>>>>>>>>
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CStackList<H, CNil<()>>>>>>>>>
Source§fn into_rust_tuple(self) -> Self::Tuple
fn into_rust_tuple(self) -> Self::Tuple
Moves the canonical fields into their corresponding native tuple positions.
- Complexity: O(n) field moves for n fields, without allocation.
Source§type Tuple = (A, B, C, D, E, F, G, H)
type Tuple = (A, B, C, D, E, F, G, H)
Source§impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CStackList<H, CStackList<I, CNil<()>>>>>>>>>>
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CStackList<H, CStackList<I, CNil<()>>>>>>>>>>
Source§fn into_rust_tuple(self) -> Self::Tuple
fn into_rust_tuple(self) -> Self::Tuple
Moves the canonical fields into their corresponding native tuple positions.
- Complexity: O(n) field moves for n fields, without allocation.
Source§type Tuple = (A, B, C, D, E, F, G, H, I)
type Tuple = (A, B, C, D, E, F, G, H, I)
Source§impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CStackList<H, CStackList<I, CStackList<J, CNil<()>>>>>>>>>>>
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CStackList<H, CStackList<I, CStackList<J, CNil<()>>>>>>>>>>>
Source§fn into_rust_tuple(self) -> Self::Tuple
fn into_rust_tuple(self) -> Self::Tuple
Moves the canonical fields into their corresponding native tuple positions.
- Complexity: O(n) field moves for n fields, without allocation.
Source§type Tuple = (A, B, C, D, E, F, G, H, I, J)
type Tuple = (A, B, C, D, E, F, G, H, I, J)
Source§impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CStackList<H, CStackList<I, CStackList<J, CStackList<K, CNil<()>>>>>>>>>>>>
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CStackList<H, CStackList<I, CStackList<J, CStackList<K, CNil<()>>>>>>>>>>>>
Source§fn into_rust_tuple(self) -> Self::Tuple
fn into_rust_tuple(self) -> Self::Tuple
Moves the canonical fields into their corresponding native tuple positions.
- Complexity: O(n) field moves for n fields, without allocation.
Source§type Tuple = (A, B, C, D, E, F, G, H, I, J, K)
type Tuple = (A, B, C, D, E, F, G, H, I, J, K)
Source§impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static, L: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CStackList<H, CStackList<I, CStackList<J, CStackList<K, CStackList<L, CNil<()>>>>>>>>>>>>>
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static, K: 'static, L: 'static> IntoRustTuple for CStackList<A, CStackList<B, CStackList<C, CStackList<D, CStackList<E, CStackList<F, CStackList<G, CStackList<H, CStackList<I, CStackList<J, CStackList<K, CStackList<L, CNil<()>>>>>>>>>>>>>
Source§fn into_rust_tuple(self) -> Self::Tuple
fn into_rust_tuple(self) -> Self::Tuple
Moves the canonical fields into their corresponding native tuple positions.
- Complexity: O(n) field moves for n fields, without allocation.
Source§type Tuple = (A, B, C, D, E, F, G, H, I, J, K, L)
type Tuple = (A, B, C, D, E, F, G, H, I, J, K, L)
Source§impl<H: 'static, T: List + CStackListHeadLimit> List for CStackList<H, T>
impl<H: 'static, T: List + CStackListHeadLimit> List for CStackList<H, T>
Source§fn empty() -> Self::Empty
fn empty() -> Self::Empty
Creates the canonical empty list without borrowing this list’s values.
Source§fn push<U: 'static>(self, item: U) -> Self::Push<U>
fn push<U: 'static>(self, item: U) -> Self::Push<U>
Moves a new first field and this list into their canonical node.
Source§fn append<U: List>(self, other: U) -> Self::Append<U>
fn append<U: List>(self, other: U) -> Self::Append<U>
Moves these fields before other without cloning them.
- Complexity: O(n) field moves for n fields in this list.
Source§fn reverse_onto<U: List>(self, other: U) -> Self::ReverseOnto<U>
fn reverse_onto<U: List>(self, other: U) -> Self::ReverseOnto<U>
Moves these fields in reverse order before other.
- Complexity: O(n) field moves for n fields in this list.
Source§type Push<U: 'static> = CStackList<U, CStackList<H, T>>
type Push<U: 'static> = CStackList<U, CStackList<H, T>>
Source§type Append<U: List> = <<T as List>::Append<U> as List>::Push<H>
type Append<U: List> = <<T as List>::Append<U> as List>::Push<H>
List appended to SelfSource§type ReverseOnto<U: List> = <T as List>::ReverseOnto<<U as List>::Push<H>>
type ReverseOnto<U: List> = <T as List>::ReverseOnto<<U as List>::Push<H>>
Self onto U.Source§impl<H: 'static, T, U: Unsigned, B: Bit> ListIndex<RangeFrom<UInt<U, B>>> for CStackList<H, T>
impl<H: 'static, T, U: Unsigned, B: Bit> ListIndex<RangeFrom<UInt<U, B>>> for CStackList<H, T>
Source§impl<H: 'static, T: List + CStackListHeadLimit> ListIndex<RangeFrom<UTerm>> for CStackList<H, T>
impl<H: 'static, T: List + CStackListHeadLimit> ListIndex<RangeFrom<UTerm>> for CStackList<H, T>
Source§impl<H: 'static, T: List + CStackListHeadLimit> ListIndex<RangeTo<UTerm>> for CStackList<H, T>
impl<H: 'static, T: List + CStackListHeadLimit> ListIndex<RangeTo<UTerm>> for CStackList<H, T>
Source§impl<H: 'static, T, U: Unsigned, B: Bit> ListIndex<RangeToInclusive<UInt<U, B>>> for CStackList<H, T>where
T: ListIndex<RangeToInclusive<Sub1<UInt<U, B>>>> + List + CStackListHeadLimit,
<T as ListIndex<RangeToInclusive<Sub1<UInt<U, B>>>>>::Output: List,
UInt<U, B>: Sub<B1>,
impl<H: 'static, T, U: Unsigned, B: Bit> ListIndex<RangeToInclusive<UInt<U, B>>> for CStackList<H, T>where
T: ListIndex<RangeToInclusive<Sub1<UInt<U, B>>>> + List + CStackListHeadLimit,
<T as ListIndex<RangeToInclusive<Sub1<UInt<U, B>>>>>::Output: List,
UInt<U, B>: Sub<B1>,
Source§impl<H: 'static, T: List + CStackListHeadLimit> ListIndex<RangeToInclusive<UTerm>> for CStackList<H, T>
impl<H: 'static, T: List + CStackListHeadLimit> ListIndex<RangeToInclusive<UTerm>> for CStackList<H, T>
Source§impl<H: 'static, T: List + CStackListHeadLimit> ListIndex<UTerm> for CStackList<H, T>
impl<H: 'static, T: List + CStackListHeadLimit> ListIndex<UTerm> for CStackList<H, T>
Source§impl<P: ListTypeProperty, H: 'static, T: ListTypeIteratorAdvance<P> + CStackListHeadLimit> ListTypeIteratorAdvance<P> for CStackList<H, T>
impl<P: ListTypeProperty, H: 'static, T: ListTypeIteratorAdvance<P> + CStackListHeadLimit> ListTypeIteratorAdvance<P> for CStackList<H, T>
Source§impl<H, T, O: List> PartialEq<O> for CStackList<H, T>
impl<H, T, O: List> PartialEq<O> for CStackList<H, T>
Source§impl<H: 'static, T: List + CStackListHeadLimit> StackResult for CStackList<H, T>
impl<H: 'static, T: List + CStackListHeadLimit> StackResult for CStackList<H, T>
Source§unsafe fn take_result(stack: &mut RawStack) -> H
unsafe fn take_result(stack: &mut RawStack) -> H
Transfers the concrete head out of its owned stack slot.
Source§impl<H: 'static, T: ToTypeIdList + 'static + CStackListHeadLimit> ToTypeIdList for CStackList<H, T>
impl<H: 'static, T: ToTypeIdList + 'static + CStackListHeadLimit> ToTypeIdList for CStackList<H, T>
Source§fn to_stack_info_list() -> Vec<StackInfo>
fn to_stack_info_list() -> Vec<StackInfo>
Enumerates tail storage followed by the opaque head.
- Complexity: O(n) slots for n list elements.