Home
last modified time | relevance | path

Searched refs:try_new (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/samples/rust/
H A Drust_print.rs21 let a = Arc::try_new(1)?; in arc_print()
22 let b = UniqueArc::try_new("hello, world")?; in arc_print()
/kernel/linux/linux-6.6/rust/kernel/sync/
H A Darc.rs60 /// let obj = Arc::try_new(Example { a: 10, b: 20 })?;
99 /// let obj = Arc::try_new(Example { a: 10, b: 20 })?;
122 /// let obj: Arc<Example> = Arc::try_new(Example)?;
165 pub fn try_new(contents: T) -> Result<Self, AllocError> { in try_new() functions
173 let inner = Box::try_new(value)?; in try_new()
350 /// let obj = Arc::try_new(Example)?;
374 /// let obj = Arc::try_new(Example { a: 10, b: 20 })?;
462 /// let mut x = UniqueArc::try_new(Example { a: 10, b: 20 })?;
505 /// let mut pinned = Pin::from(UniqueArc::try_new(Example { a: 10, b: 20 })?);
519 pub fn try_new(valu functions
[all...]
/kernel/linux/linux-5.10/drivers/net/wimax/i2400m/
H A Dtx.c405 * goto try_new;
738 try_new: in i2400m_tx()
773 goto try_new; in i2400m_tx()
/kernel/linux/linux-6.6/rust/alloc/
H A Dboxed.rs301 /// let five = Box::try_new(5)?;
306 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new() functions

Completed in 5 milliseconds