Skip to main content

wiwi_chain/
vec.rs

1use crate::prelude_internal::*;
2
3#[chain_fn]
4impl<T> Chain<Vec<T>> {
5	#[chain_doc("Vec::new")]
6	pub fn new() -> Self {}
7
8	#[chain_doc("Vec::with_capacity")]
9	pub fn with_capacity(capacity: usize) -> Self {}
10
11	#[chain_doc("Vec::from_raw_parts")]
12	pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self {}
13
14	pub fn append(&mut self, other: &mut Vec<T>) {}
15	// pub fn binary_search(&self, x: &T) -> Result<usize, usize>
16	// where
17	// 	T: Ord
18	// {}
19	pub fn capacity(&self) -> usize {}
20	pub fn clear(&mut self) {}
21	// pub fn clone_from_slice(&mut self, src: &[T])
22	// where
23	// 	T: Clone
24	// {}
25	// pub fn copy_from_slice(&mut self, src: &[T])
26	// where
27	// 	T: Copy
28	// {}
29	pub fn push(&mut self, value: T) {}
30}