Home
last modified time | relevance | path

Searched refs:LayoutError (Results 1 – 25 of 72) sorted by relevance

123

/dports/lang/rust/rustc-1.58.1-src/library/core/src/alloc/
H A Dlayout.rs63 return Err(LayoutError); in from_size_align()
81 return Err(LayoutError); in from_size_align()
216 pub fn align_to(&self, align: usize) -> Result<Self, LayoutError> { in align_to() argument
305 let alloc_size = padded_size.checked_mul(n).ok_or(LayoutError)?; in repeat()
363 let offset = self.size().checked_add(pad).ok_or(LayoutError)?; in extend()
384 pub fn repeat_packed(&self, n: usize) -> Result<Self, LayoutError> { in repeat_packed() argument
385 let size = self.size().checked_mul(n).ok_or(LayoutError)?; in repeat_packed()
407 pub fn array<T>(n: usize) -> Result<Self, LayoutError> { in array() argument
428 pub type LayoutErr = LayoutError;
436 pub struct LayoutError; struct
[all …]
/dports/lang/rust/rustc-1.58.1-src/library/alloc/src/collections/
H A Dmod.rs55 use crate::alloc::{Layout, LayoutError};
122 impl From<LayoutError> for TryReserveErrorKind {
125 fn from(_: LayoutError) -> Self { in from()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/ty/
H A Dlayout.rs199 pub enum LayoutError<'tcx> { enum
204 impl<'tcx> fmt::Display for LayoutError<'tcx> { implementation
208 LayoutError::SizeOverflow(ty) => { in fmt()
218 ) -> Result<TyAndLayout<'tcx>, LayoutError<'tcx>> { in layout_of()
317 ) -> Result<Layout, LayoutError<'tcx>> { in univariant_uninterned()
322 return Err(LayoutError::Unknown(ty)); in univariant_uninterned()
2146 err: LayoutError<'tcx>, in handle_layout_err()
2183 fn handle_layout_err(&self, err: LayoutError<'tcx>, _: Span, _: Ty<'tcx>) -> LayoutError<'tcx> { in handle_layout_err()
2197 fn handle_layout_err(&self, err: LayoutError<'tcx>, _: Span, _: Ty<'tcx>) -> LayoutError<'tcx> { in handle_layout_err()
2818 Layout(LayoutError<'tcx>),
[all …]
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_const_eval/src/const_eval/
H A Derror.rs7 use rustc_middle::ty::{layout::LayoutError, query::TyCtxtAt, ConstInt};
170 err_inval!(Layout(LayoutError::Unknown(_))) | err_inval!(TooGeneric) => { in struct_generic()
176 err_inval!(Layout(LayoutError::SizeOverflow(_))) => { in struct_generic()
/dports/lang/spidermonkey60/firefox-60.9.0/third_party/rust/bindgen/src/
H A Dclang.rs585 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
587 return Err(LayoutError::from(-1)); in offset_of_field()
593 Err(LayoutError::from(offset as i32)) in offset_of_field()
771 pub enum LayoutError { enum
787 impl ::std::convert::From<i32> for LayoutError { implementation
789 use self::LayoutError::*; in from()
872 pub fn fallible_size(&self) -> Result<usize, LayoutError> { in fallible_size() argument
875 Err(LayoutError::from(val as i32)) in fallible_size()
891 pub fn fallible_align(&self) -> Result<usize, LayoutError> { in fallible_align() argument
895 Err(LayoutError::from(val as i32)) in fallible_align()
[all …]
/dports/sysutils/vector/vector-0.10.0/cargo-crates/bindgen-0.51.1/src/
H A Dclang.rs631 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
633 return Err(LayoutError::from(-1)); in offset_of_field()
639 Err(LayoutError::from(offset as i32)) in offset_of_field()
891 pub enum LayoutError { enum
907 impl ::std::convert::From<i32> for LayoutError { implementation
909 use self::LayoutError::*; in from()
1029 ) -> Result<usize, LayoutError> { in fallible_size() argument
1032 Err(LayoutError::from(val as i32)) in fallible_size()
1053 ) -> Result<usize, LayoutError> { in fallible_align() argument
1056 Err(LayoutError::from(val as i32)) in fallible_align()
[all …]
/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/bindgen-0.51.1/src/
H A Dclang.rs631 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
633 return Err(LayoutError::from(-1)); in offset_of_field()
639 Err(LayoutError::from(offset as i32)) in offset_of_field()
891 pub enum LayoutError { enum
907 impl ::std::convert::From<i32> for LayoutError { implementation
909 use self::LayoutError::*; in from()
1029 ) -> Result<usize, LayoutError> { in fallible_size() argument
1032 Err(LayoutError::from(val as i32)) in fallible_size()
1053 ) -> Result<usize, LayoutError> { in fallible_align() argument
1056 Err(LayoutError::from(val as i32)) in fallible_align()
[all …]
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/bindgen-0.51.1/src/
H A Dclang.rs631 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
633 return Err(LayoutError::from(-1)); in offset_of_field()
639 Err(LayoutError::from(offset as i32)) in offset_of_field()
891 pub enum LayoutError { enum
907 impl ::std::convert::From<i32> for LayoutError { implementation
909 use self::LayoutError::*; in from()
1029 ) -> Result<usize, LayoutError> { in fallible_size() argument
1032 Err(LayoutError::from(val as i32)) in fallible_size()
1053 ) -> Result<usize, LayoutError> { in fallible_align() argument
1056 Err(LayoutError::from(val as i32)) in fallible_align()
[all …]
/dports/editors/parinfer-rust/parinfer-rust-0.4.3/cargo-crates/bindgen-0.48.1/src/
H A Dclang.rs596 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
598 return Err(LayoutError::from(-1)); in offset_of_field()
604 Err(LayoutError::from(offset as i32)) in offset_of_field()
844 pub enum LayoutError { enum
860 impl ::std::convert::From<i32> for LayoutError { implementation
862 use self::LayoutError::*; in from()
973 pub fn fallible_size(&self, ctx: &BindgenContext) -> Result<usize, LayoutError> { in fallible_size() argument
976 Err(LayoutError::from(val as i32)) in fallible_size()
990 pub fn fallible_align(&self, ctx: &BindgenContext) -> Result<usize, LayoutError> { in fallible_align() argument
993 Err(LayoutError::from(val as i32)) in fallible_align()
[all …]
/dports/audio/spotifyd/spotifyd-0.3.0/cargo-crates/bindgen-0.51.1/src/
H A Dclang.rs631 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
633 return Err(LayoutError::from(-1)); in offset_of_field()
639 Err(LayoutError::from(offset as i32)) in offset_of_field()
891 pub enum LayoutError { enum
907 impl ::std::convert::From<i32> for LayoutError { implementation
909 use self::LayoutError::*; in from()
1029 ) -> Result<usize, LayoutError> { in fallible_size() argument
1032 Err(LayoutError::from(val as i32)) in fallible_size()
1053 ) -> Result<usize, LayoutError> { in fallible_align() argument
1056 Err(LayoutError::from(val as i32)) in fallible_align()
[all …]
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/bindgen-0.53.3/src/
H A Dclang.rs638 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
640 return Err(LayoutError::from(-1)); in offset_of_field()
646 Err(LayoutError::from(offset as i32)) in offset_of_field()
912 pub enum LayoutError { enum
928 impl ::std::convert::From<i32> for LayoutError { implementation
930 use self::LayoutError::*; in from()
1050 ) -> Result<usize, LayoutError> { in fallible_size() argument
1053 Err(LayoutError::from(val as i32)) in fallible_size()
1074 ) -> Result<usize, LayoutError> { in fallible_align() argument
1077 Err(LayoutError::from(val as i32)) in fallible_align()
[all …]
/dports/textproc/sonic/sonic-1.3.0/cargo-crates/bindgen-0.53.3/src/
H A Dclang.rs638 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
640 return Err(LayoutError::from(-1)); in offset_of_field()
646 Err(LayoutError::from(offset as i32)) in offset_of_field()
912 pub enum LayoutError { enum
928 impl ::std::convert::From<i32> for LayoutError { implementation
930 use self::LayoutError::*; in from()
1050 ) -> Result<usize, LayoutError> { in fallible_size() argument
1053 Err(LayoutError::from(val as i32)) in fallible_size()
1074 ) -> Result<usize, LayoutError> { in fallible_align() argument
1077 Err(LayoutError::from(val as i32)) in fallible_align()
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/bindgen/src/
H A Dclang.rs638 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
640 return Err(LayoutError::from(-1)); in offset_of_field()
646 Err(LayoutError::from(offset as i32)) in offset_of_field()
912 pub enum LayoutError { enum
928 impl ::std::convert::From<i32> for LayoutError { implementation
930 use self::LayoutError::*; in from()
1050 ) -> Result<usize, LayoutError> { in fallible_size() argument
1053 Err(LayoutError::from(val as i32)) in fallible_size()
1074 ) -> Result<usize, LayoutError> { in fallible_align() argument
1077 Err(LayoutError::from(val as i32)) in fallible_align()
[all …]
/dports/graphics/gifski/gifski-1.5.0/cargo-crates/bindgen-0.54.0/src/
H A Dclang.rs638 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
640 return Err(LayoutError::from(-1)); in offset_of_field()
646 Err(LayoutError::from(offset as i32)) in offset_of_field()
912 pub enum LayoutError { enum
928 impl ::std::convert::From<i32> for LayoutError { implementation
930 use self::LayoutError::*; in from()
1050 ) -> Result<usize, LayoutError> { in fallible_size() argument
1053 Err(LayoutError::from(val as i32)) in fallible_size()
1074 ) -> Result<usize, LayoutError> { in fallible_align() argument
1077 Err(LayoutError::from(val as i32)) in fallible_align()
[all …]
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_passes/src/
H A Dlayout_test.rs6 use rustc_middle::ty::layout::{HasParamEnv, HasTyCtxt, LayoutError, LayoutOfHelpers, TyAndLayout};
120 fn handle_layout_err(&self, err: LayoutError<'tcx>, span: Span, ty: Ty<'tcx>) -> ! { in handle_layout_err()
/dports/multimedia/librav1e/rav1e-0.5.1/cargo-crates/bindgen-0.58.1/src/
H A Dclang.rs651 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
655 Err(LayoutError::from(offset as i32)) in offset_of_field()
932 pub enum LayoutError { enum
948 impl ::std::convert::From<i32> for LayoutError { implementation
950 use self::LayoutError::*; in from()
1070 ) -> Result<usize, LayoutError> { in fallible_size() argument
1073 Err(LayoutError::from(val as i32)) in fallible_size()
1094 ) -> Result<usize, LayoutError> { in fallible_align() argument
1097 Err(LayoutError::from(val as i32)) in fallible_align()
1108 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument
/dports/multimedia/rav1e/rav1e-0.5.1/cargo-crates/bindgen-0.58.1/src/
H A Dclang.rs651 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
655 Err(LayoutError::from(offset as i32)) in offset_of_field()
932 pub enum LayoutError { enum
948 impl ::std::convert::From<i32> for LayoutError { implementation
950 use self::LayoutError::*; in from()
1070 ) -> Result<usize, LayoutError> { in fallible_size() argument
1073 Err(LayoutError::from(val as i32)) in fallible_size()
1094 ) -> Result<usize, LayoutError> { in fallible_align() argument
1097 Err(LayoutError::from(val as i32)) in fallible_align()
1108 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument
/dports/devel/rust-bindgen/bindgen-0.59.2/src/
H A Dclang.rs667 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
671 Err(LayoutError::from(offset as i32)) in offset_of_field()
948 pub enum LayoutError { enum
964 impl ::std::convert::From<i32> for LayoutError { implementation
966 use self::LayoutError::*; in from()
1086 ) -> Result<usize, LayoutError> { in fallible_size() argument
1089 Err(LayoutError::from(val as i32)) in fallible_size()
1110 ) -> Result<usize, LayoutError> { in fallible_align() argument
1113 Err(LayoutError::from(val as i32)) in fallible_align()
1124 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/bindgen-0.58.1/src/
H A Dclang.rs651 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
655 Err(LayoutError::from(offset as i32)) in offset_of_field()
932 pub enum LayoutError { enum
948 impl ::std::convert::From<i32> for LayoutError { implementation
950 use self::LayoutError::*; in from()
1070 ) -> Result<usize, LayoutError> { in fallible_size() argument
1073 Err(LayoutError::from(val as i32)) in fallible_size()
1094 ) -> Result<usize, LayoutError> { in fallible_align() argument
1097 Err(LayoutError::from(val as i32)) in fallible_align()
1108 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument
/dports/databases/redisjson/RedisJSON-2.0.6/cargo-crates/bindgen-0.59.2/src/
H A Dclang.rs667 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
671 Err(LayoutError::from(offset as i32)) in offset_of_field()
948 pub enum LayoutError { enum
964 impl ::std::convert::From<i32> for LayoutError { implementation
966 use self::LayoutError::*; in from()
1086 ) -> Result<usize, LayoutError> { in fallible_size() argument
1089 Err(LayoutError::from(val as i32)) in fallible_size()
1110 ) -> Result<usize, LayoutError> { in fallible_align() argument
1113 Err(LayoutError::from(val as i32)) in fallible_align()
1124 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument
/dports/sysutils/czkawka/czkawka-3.3.1/cargo-crates/bindgen-0.56.0/src/
H A Dclang.rs642 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
646 Err(LayoutError::from(offset as i32)) in offset_of_field()
923 pub enum LayoutError { enum
939 impl ::std::convert::From<i32> for LayoutError { implementation
941 use self::LayoutError::*; in from()
1061 ) -> Result<usize, LayoutError> { in fallible_size() argument
1064 Err(LayoutError::from(val as i32)) in fallible_size()
1085 ) -> Result<usize, LayoutError> { in fallible_align() argument
1088 Err(LayoutError::from(val as i32)) in fallible_align()
1099 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument
/dports/www/firefox/firefox-99.0/third_party/rust/bindgen/src/
H A Dclang.rs642 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
646 Err(LayoutError::from(offset as i32)) in offset_of_field()
923 pub enum LayoutError { enum
939 impl ::std::convert::From<i32> for LayoutError { implementation
941 use self::LayoutError::*; in from()
1061 ) -> Result<usize, LayoutError> { in fallible_size() argument
1064 Err(LayoutError::from(val as i32)) in fallible_size()
1085 ) -> Result<usize, LayoutError> { in fallible_align() argument
1088 Err(LayoutError::from(val as i32)) in fallible_align()
1099 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument
/dports/net/quiche/quiche-0.9.0/cargo-crates/bindgen-0.57.0/src/
H A Dclang.rs651 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
655 Err(LayoutError::from(offset as i32)) in offset_of_field()
932 pub enum LayoutError { enum
948 impl ::std::convert::From<i32> for LayoutError { implementation
950 use self::LayoutError::*; in from()
1070 ) -> Result<usize, LayoutError> { in fallible_size() argument
1073 Err(LayoutError::from(val as i32)) in fallible_size()
1094 ) -> Result<usize, LayoutError> { in fallible_align() argument
1097 Err(LayoutError::from(val as i32)) in fallible_align()
1108 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/rust/bindgen/src/
H A Dclang.rs642 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
646 Err(LayoutError::from(offset as i32)) in offset_of_field()
923 pub enum LayoutError { enum
939 impl ::std::convert::From<i32> for LayoutError { implementation
941 use self::LayoutError::*; in from()
1061 ) -> Result<usize, LayoutError> { in fallible_size() argument
1064 Err(LayoutError::from(val as i32)) in fallible_size()
1085 ) -> Result<usize, LayoutError> { in fallible_align() argument
1088 Err(LayoutError::from(val as i32)) in fallible_align()
1099 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument
/dports/www/firefox-esr/firefox-91.8.0/third_party/rust/bindgen/src/
H A Dclang.rs642 pub fn offset_of_field(&self) -> Result<usize, LayoutError> { in offset_of_field() argument
646 Err(LayoutError::from(offset as i32)) in offset_of_field()
923 pub enum LayoutError { enum
939 impl ::std::convert::From<i32> for LayoutError { implementation
941 use self::LayoutError::*; in from()
1061 ) -> Result<usize, LayoutError> { in fallible_size() argument
1064 Err(LayoutError::from(val as i32)) in fallible_size()
1085 ) -> Result<usize, LayoutError> { in fallible_align() argument
1088 Err(LayoutError::from(val as i32)) in fallible_align()
1099 ) -> Result<crate::ir::layout::Layout, LayoutError> { in fallible_layout() argument

123