pub struct Error<Id> {
pub index: i32,
pub synthetic: Option<Id>,
}Expand description
Port of Luau::Unifiable::Error<Id> from Analysis/include/Luau/Unifiable.h.
An error type with an optional “synthetic” stand-in TypeId for presentation.
Fields§
§index: i32§synthetic: Option<Id>Optional synthetic TypeId used to communicate the error to the user.
Implementations§
Trait Implementations§
impl<Id: Eq> Eq for Error<Id>
Source§impl From<Error<*const TypePackVar>> for TypePackVar
impl From<Error<*const TypePackVar>> for TypePackVar
Source§fn from(v: ErrorTypePack) -> Self
fn from(v: ErrorTypePack) -> Self
Converts to this type from the input type.
impl<Id: PartialEq> StructuralPartialEq for Error<Id>
Source§impl TypePackVariantMember for Error<TypePackId>
impl TypePackVariantMember for Error<TypePackId>
fn get_if(v: &TypePackVariant) -> Option<&Self>
fn get_if_mut(v: &mut TypePackVariant) -> Option<&mut Self>
Source§impl TypeVariantMember for Error<TypeId>
impl TypeVariantMember for Error<TypeId>
fn get_if(v: &TypeVariant) -> Option<&Self>
fn get_if_mut(v: &mut TypeVariant) -> Option<&mut Self>
Auto Trait Implementations§
impl<Id> Freeze for Error<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for Error<Id>where
Id: RefUnwindSafe,
impl<Id> Send for Error<Id>where
Id: Send,
impl<Id> Sync for Error<Id>where
Id: Sync,
impl<Id> Unpin for Error<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for Error<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for Error<Id>where
Id: UnwindSafe,
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> GetMutableThroughId<*const Type> for Twhere
T: TypeVariantMember + 'static,
impl<T> GetMutableThroughId<*const Type> for Twhere
T: TypeVariantMember + 'static,
Source§impl<T> GetMutableThroughId<*const TypePackVar> for Twhere
T: TypePackVariantMember + 'static,
impl<T> GetMutableThroughId<*const TypePackVar> for Twhere
T: TypePackVariantMember + 'static,
Source§unsafe fn get_mutable_through(tp: *const TypePackVar) -> *mut T
unsafe fn get_mutable_through(tp: *const TypePackVar) -> *mut T
Safety Read more
Source§impl<T> GetThroughId<*const Type> for Twhere
T: TypeVariantMember + 'static,
impl<T> GetThroughId<*const Type> for Twhere
T: TypeVariantMember + 'static,
Source§impl<T> GetThroughId<*const TypePackVar> for Twhere
T: TypePackVariantMember + 'static,
impl<T> GetThroughId<*const TypePackVar> for Twhere
T: TypePackVariantMember + 'static,
Source§unsafe fn get_through(tp: *const TypePackVar) -> *const T
unsafe fn get_through(tp: *const TypePackVar) -> *const T
Safety Read more