Home
last modified time | relevance | path

Searched defs:LayoutError (Results 1 – 14 of 14) sorted by relevance

/third_party/rust/rust/library/core/src/alloc/
Dlayout.rs68 pub const fn from_size_align(size: usize, align: usize) -> Result<Self, LayoutError> { in from_size_align() argument
98 const fn from_size_alignment(size: usize, align: Alignment) -> Result<Self, LayoutError> { in from_size_alignment() argument
235 pub fn align_to(&self, align: usize) -> Result<Self, LayoutError> { in align_to() argument
318 pub fn repeat(&self, n: usize) -> Result<(Self, usize), LayoutError> { in repeat() argument
378 pub fn extend(&self, next: Self) -> Result<(Self, usize), LayoutError> { in extend() argument
404 pub fn repeat_packed(&self, n: usize) -> Result<Self, LayoutError> { in repeat_packed() argument
418 pub fn extend_packed(&self, next: Self) -> Result<Self, LayoutError> { in extend_packed() argument
431 pub const fn array<T>(n: usize) -> Result<Self, LayoutError> { in array() argument
440 ) -> Result<Layout, LayoutError> { in array() argument
475 pub struct LayoutError; struct
[all …]
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-ty/src/layout/
Dadt.rs33 ) -> Result<Arc<Layout>, LayoutError> { in layout_of_adt_query() argument
136 ) -> Result<Arc<Layout>, LayoutError> { in layout_of_adt_recover() argument
149 ) -> Result<(Integer, bool), LayoutError> { in repr_discr() argument
Dtests.rs22 fn eval_goal(ra_fixture: &str, minicore: &str) -> Result<Arc<Layout>, LayoutError> { in eval_goal() argument
65 fn eval_expr(ra_fixture: &str, minicore: &str) -> Result<Arc<Layout>, LayoutError> { in eval_expr() argument
107 fn check_fail(ra_fixture: &str, e: LayoutError) { in check_fail()
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-ty/src/
Dlayout.rs53 pub enum LayoutError { enum
84 ) -> Result<Arc<Layout>, LayoutError> { in layout_of_ty_query() argument
298 ) -> Result<Arc<Layout>, LayoutError> { in layout_of_ty_recover() argument
302 fn layout_of_unit(cx: &LayoutCx<'_>, dl: &TargetDataLayout) -> Result<Layout, LayoutError> { in layout_of_unit() argument
Ddb.rs104 ) -> Result<Arc<Layout>, LayoutError>; in layout_of_adt() argument
108 fn layout_of_ty(&self, ty: Ty, krate: CrateId) -> Result<Arc<Layout>, LayoutError>; in layout_of_ty() argument
/third_party/rust/rust/compiler/rustc_middle/src/ty/
Dlayout.rs211 pub enum LayoutError<'tcx> { enum
218 impl<'tcx> LayoutError<'tcx> { implementation
246 impl<'tcx> fmt::Display for LayoutError<'tcx> { implementation
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/src/hover/
Drender.rs636 E: Fn(&D) -> Result<Layout, LayoutError>, in label_and_layout_info_and_docs() argument
663 E2: Fn(&D) -> Result<Layout, LayoutError>, in label_value_and_layout_info_and_docs() argument
773 layout: impl FnOnce() -> Result<Layout, LayoutError>, in render_memory_layout() argument
/third_party/rust/rust/compiler/rustc_middle/src/
Derror.rs123 pub enum LayoutError<'tcx> { enum
/third_party/rust/crates/bindgen/bindgen/
Dclang.rs895 pub(crate) fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
1176 pub(crate) enum LayoutError { enum
1192 impl ::std::convert::From<i32> for LayoutError { implementation
1314 ) -> Result<usize, LayoutError> { in fallible_size() argument
1338 ) -> Result<usize, LayoutError> { in fallible_align() argument
1352 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument
/third_party/rust/rust/library/alloc/src/boxed/
Dthin.rs292 fn alloc_layout(value_layout: Layout) -> Result<(Layout, usize), LayoutError> { in alloc_layout() argument
/third_party/rust/rust/library/alloc/src/
Draw_vec.rs455 new_layout: Result<Layout, LayoutError>, in finish_grow() argument
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir/src/
Dlib.rs965 pub fn layout(&self, db: &dyn HirDatabase) -> Result<Layout, LayoutError> { in layout() argument
1140 pub fn layout(self, db: &dyn HirDatabase) -> Result<Layout, LayoutError> { in layout() argument
1204 pub fn layout(&self, db: &dyn HirDatabase) -> Result<Layout, LayoutError> { in layout() argument
1242 pub fn layout(self, db: &dyn HirDatabase) -> Result<Layout, LayoutError> { in layout() argument
4277 pub fn layout(&self, db: &dyn HirDatabase) -> Result<Layout, LayoutError> { in layout() argument
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-ty/src/mir/
Dlower.rs75 LayoutError(LayoutError), enumerator
Deval.rs273 LayoutError(LayoutError, Ty), enumerator