pub struct UnsupportedArrayLen {
pub array: String,
pub offending: String,
pub reason: ArrayLenReason,
}Expand description
A length the prebindgen source language does not accept.
Names the offending sub-expression, not just the array: the point of the single walk is that it knows exactly which part it could not lower.
Fields§
§array: StringThe array type as written, for context — [u8 ; A + 1].
offending: StringThe sub-expression that could not be lowered — A + 1.
reason: ArrayLenReasonWhy it could not be lowered.
Trait Implementations§
Source§impl Clone for UnsupportedArrayLen
impl Clone for UnsupportedArrayLen
Source§fn clone(&self) -> UnsupportedArrayLen
fn clone(&self) -> UnsupportedArrayLen
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnsupportedArrayLen
impl Debug for UnsupportedArrayLen
Source§impl Display for UnsupportedArrayLen
impl Display for UnsupportedArrayLen
impl Eq for UnsupportedArrayLen
Source§impl Error for UnsupportedArrayLen
impl Error for UnsupportedArrayLen
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for UnsupportedArrayLen
impl PartialEq for UnsupportedArrayLen
impl StructuralPartialEq for UnsupportedArrayLen
Auto Trait Implementations§
impl Freeze for UnsupportedArrayLen
impl RefUnwindSafe for UnsupportedArrayLen
impl Send for UnsupportedArrayLen
impl Sync for UnsupportedArrayLen
impl Unpin for UnsupportedArrayLen
impl UnsafeUnpin for UnsupportedArrayLen
impl UnwindSafe for UnsupportedArrayLen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more