Home
last modified time | relevance | path

Searched refs:AllocError (Results 1 – 12 of 12) sorted by relevance

/trusty/user/base/lib/trusty-std/src/ffi/
Dc_str.rs39 use crate::alloc::{AllocError, TryAllocInto};
64 AllocError, enumerator
67 impl From<AllocError> for TryNewError {
68 fn from(_err: AllocError) -> Self { in from()
69 TryNewError::AllocError in from()
120 unsafe fn try_from_vec_unchecked(v: Vec<u8>) -> Result<CString, AllocError>; in try_from_vec_unchecked() argument
126 fn into_vec(self) -> Result<Vec<u8>, AllocError>; in try_new() argument
129 default fn into_vec(self) -> Result<Vec<u8>, AllocError> { in try_new() argument
135 fn into_vec(self) -> Result<Vec<u8>, AllocError> { in try_new() argument
137 v.try_reserve_exact(self.len() + 1).or(Err(AllocError))?; in try_new()
[all …]
/trusty/user/base/lib/tipc/rust/src/
Derr.rs17 use alloc::alloc::AllocError;
40 AllocError, enumerator
110 TryNewError::AllocError => Self::AllocError, in from()
117 TipcError::AllocError in from()
127 impl From<AllocError> for TipcError {
128 fn from(_err: AllocError) -> Self { in from()
129 TipcError::AllocError in from()
Dhandle.rs387 self.buffers.try_push(bytes).or(Err(TipcError::AllocError)) in serialize_bytes()
391 self.handles.try_push(Handle(handle.as_raw_fd())).or(Err(TipcError::AllocError)) in serialize_handle()
Dservice.rs22 use trusty_std::alloc::{AllocError, Vec};
124 type Error = AllocError;
/trusty/user/base/lib/hwbcc/rust/src/
Derr.rs19 use trusty_std::alloc::AllocError;
27 AllocError, enumerator
52 impl From<AllocError> for HwBccError {
53 fn from(_err: AllocError) -> Self { in from()
54 HwBccError::AllocError in from()
/trusty/user/base/lib/trusty-std/src/
Dclone_ext.rs17 use alloc::alloc::{AllocError, Allocator};
47 type Error = AllocError;
60 fn try_to_vec<T: TryConvertVec, A: Allocator>(s: &[T], alloc: A) -> Result<Vec<T, A>, AllocError> { in try_to_vec() argument
65 fn try_to_vec<A: Allocator>(s: &[Self], alloc: A) -> Result<Vec<Self, A>, AllocError> in try_to_vec()
72 default fn try_to_vec<A: Allocator>(s: &[Self], alloc: A) -> Result<Vec<Self, A>, AllocError> { in try_to_vec() argument
90 vec.try_reserve_exact(s.len()).or(Err(AllocError))?; in try_to_vec()
112 fn try_to_vec<A: Allocator>(s: &[Self], alloc: A) -> Result<Vec<Self, A>, AllocError> { in try_to_vec() argument
116 v.try_reserve_exact(s.len()).or(Err(AllocError))?; in try_to_vec()
129 type Error = AllocError;
Dalloc.rs45 fn try_alloc_into(self) -> Result<T, AllocError>; in try_alloc_into() argument
52 fn try_alloc_into(self) -> Result<U, AllocError> { in try_alloc_into() argument
69 fn try_alloc_from(value: T) -> Result<Self, AllocError>; in try_alloc_from() argument
73 fn try_alloc_from(s: &str) -> Result<Self, AllocError> { in try_alloc_from() argument
75 vec.try_reserve_exact(s.len()).or(Err(AllocError))?; in try_alloc_from()
82 fn try_alloc_from(s: &[u8]) -> Result<Self, AllocError> { in try_alloc_from() argument
84 vec.try_reserve_exact(s.len()).or(Err(AllocError))?; in try_alloc_from()
203 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() argument
213 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in alloc_impl()
227 ) -> Result<NonNull<[u8]>, AllocError> { in grow_impl() argument
[all …]
/trusty/user/base/lib/hwwsk/rust/src/
Derr.rs21 use trusty_std::alloc::AllocError;
38 AllocError, enumerator
80 impl From<AllocError> for HwWskError {
81 fn from(_err: AllocError) -> Self { in from()
82 HwWskError::AllocError in from()
/trusty/user/base/lib/hwkey/rust/src/
Derr.rs18 use alloc::alloc::AllocError;
32 AllocError, enumerator
73 impl From<AllocError> for HwkeyError {
74 fn from(_err: AllocError) -> Self { in from()
75 Self::AllocError in from()
/trusty/user/base/lib/storage/rust/src/
Dlib.rs139 use core::alloc::AllocError;
692 Alloc(AllocError),
784 impl From<AllocError> for Error {
785 fn from(from: AllocError) -> Self { in from()
/trusty/user/app/keymint/
Dffi_bindings.rs147 TipcError::AllocError in deserialize()
Dipc_manager.rs152 TipcError::AllocError in on_message()