Lines Matching refs:stack
31 /// Trait implemented by types which can be placed in a stack.
35 /// The C stack type for this element.
42 /// An owned stack of `T`.
82 stack: self.0,
137 stack: *mut T::StackType,
147 OPENSSL_sk_free(self.stack as *mut _);
159 .map(|i| T::from_ptr(OPENSSL_sk_value(self.stack as *mut _, i) as *mut _))
173 .map(|i| T::from_ptr(OPENSSL_sk_value(self.stack as *mut _, i) as *mut _))
194 /// Returns the number of items in the stack.
199 /// Determines if the stack is empty.
206 stack: self,
214 stack: self,
219 /// stack or `None` if the index is out of bounds
231 /// stack or `None` if the index is out of bounds
242 /// Pushes a value onto the top of the stack.
251 /// Removes the last element from the stack and returns it.
314 /// An iterator over the stack's contents.
316 stack: &'a StackRef<T>,
327 .map(|i| T::Ref::from_ptr(OPENSSL_sk_value(self.stack.as_stack(), i) as *mut _))
341 .map(|i| T::Ref::from_ptr(OPENSSL_sk_value(self.stack.as_stack(), i) as *mut _))
348 /// A mutable iterator over the stack's contents.
350 stack: &'a mut StackRef<T>,
361 .map(|i| T::Ref::from_ptr_mut(OPENSSL_sk_value(self.stack.as_stack(), i) as *mut _))
375 .map(|i| T::Ref::from_ptr_mut(OPENSSL_sk_value(self.stack.as_stack(), i) as *mut _))