Home
last modified time | relevance | path

Searched defs:from (Results 1 – 7 of 7) sorted by relevance

/rust/kernel/
Derror.rs178 fn from(_: AllocError) -> Error { in from() method
184 fn from(_: TryFromIntError) -> Error { in from() method
190 fn from(_: Utf8Error) -> Error { in from() method
196 fn from(_: TryReserveError) -> Error { in from() method
202 fn from(_: LayoutError) -> Error { in from() method
208 fn from(_: core::fmt::Error) -> Error { in from() method
214 fn from(e: core::convert::Infallible) -> Error { in from() method
Dtypes.rs367 fn from(b: &T) -> Self { in from() method
Dstr.rs53 fn from(_: CStrConvertError) -> Error { in from() method
/rust/alloc/collections/
Dmod.rs118 fn from(kind: TryReserveErrorKind) -> Self { in from() method
127 fn from(_: LayoutError) -> Self { in from() method
/rust/alloc/
Dboxed.rs1436 fn from(t: T) -> Self { in from() method
1457 fn from(boxed: Box<T, A>) -> Self { in from() function
1506 fn from(slice: &[T]) -> Box<[T]> { in from() method
1521 fn from(cow: Cow<'_, [T]>) -> Box<[T]> { in from() method
1544 fn from(s: &str) -> Box<str> { in from() method
1576 fn from(cow: Cow<'_, str>) -> Box<str> { in from() method
1603 fn from(s: Box<str, A>) -> Self { in from() method
1622 fn from(array: [T; N]) -> Box<[T]> { in from() method
2215 fn from(err: E) -> Box<dyn Error + 'a> { in from() method
2254 fn from(err: E) -> Box<dyn Error + Send + Sync + 'a> { in from() method
[all …]
/rust/kernel/sync/
Darc.rs311 fn from(item: UniqueArc<T>) -> Self { in from() method
317 fn from(item: Pin<UniqueArc<T>>) -> Self { in from() method
419 fn from(b: ArcBorrow<'_, T>) -> Self { in from() method
591 fn from(obj: UniqueArc<T>) -> Self { in from() method
/rust/alloc/vec/
Dmod.rs3381 fn from(s: &[T]) -> Vec<T> { in from() method
3385 fn from(s: &[T]) -> Vec<T> { in from() method
3401 fn from(s: &mut [T]) -> Vec<T> { in from() method
3405 fn from(s: &mut [T]) -> Vec<T> { in from() method
3421 fn from(s: [T; N]) -> Vec<T> { in from() method
3426 fn from(s: [T; N]) -> Vec<T> { in from() method
3451 fn from(s: Cow<'a, [T]>) -> Vec<T> { in from() function
3469 fn from(s: Box<[T], A>) -> Self { in from() method
3497 fn from(v: Vec<T, A>) -> Self { in from() method
3512 fn from(s: &str) -> Vec<u8> { in from() method