Struct ENTRY_POINT_CEnum

Source
#[repr(transparent)]
pub struct ENTRY_POINT_CEnum(pub u32);
Expand description

Auto-generated FFI type for ENTRY_POINT.

§When use this?

C’s enum is really just a number and there is no guarantee that it will fit within the enum. Therefore, it is used for the following cases that cannot be controlled by Rust.

  • C++ members
  • Function return values.

§When not to use it?

Mainly those that can be controlled for safety on the Rust side.

  • Function Arguments

§Convenient methods

  • to_enum/from_enum: To inter-convert enums.
  • count: Returns the number of defined discriminants.

§Memory Layout

It will always have #[repr(transparent)]. In other words, it is equivalent to the size specified in repr.

Tuple Fields§

§0: u32

Implementations§

Source§

impl ENTRY_POINT_CEnum

Source

pub const CalculateWeaponDamage: Self

Source

pub const CalculateMyCriticalHitChance: Self

Source

pub const CalculateMyCriticalHitDamage: Self

Source

pub const CalculateMineExplodeChance: Self

Source

pub const AdjustLimbDamage: Self

Source

pub const AdjustBookSkillPoints: Self

Source

pub const ModRecoveredHealth: Self

Source

pub const GetShouldAttack: Self

Source

pub const ModBuyPrices: Self

Source

pub const AddLeveledListOnDeath: Self

Source

pub const GetMaxCarryWeight: Self

Source

pub const ModAddictionChance: Self

Source

pub const ModAddictionDuration: Self

Source

pub const ModPositiveChemDuration: Self

Source

pub const Activate: Self

Source

pub const IgnoreRunningDuringDetection: Self

Source

pub const IgnoreBrokenLock: Self

Source

pub const ModEnemyCriticalHitChance: Self

Source

pub const ModSneakAttackMult: Self

Source

pub const ModMaxPlaceableMines: Self

Source

pub const ModBowZoom: Self

Source

pub const ModRecoverArrowChance: Self

Source

pub const ModSkillUse: Self

Source

pub const ModTelekinesisDistance: Self

Source

pub const ModTelekinesisDamageMult: Self

Source

pub const ModTelekinesisDamage: Self

Source

pub const ModBashingDamage: Self

Source

pub const ModPowerAttackStamina: Self

Source

pub const ModPowerAttackDamage: Self

Source

pub const ModSpellMagnitude: Self

Source

pub const ModSpellDuration: Self

Source

pub const ModSecondaryValueWeight: Self

Source

pub const ModArmorWeight: Self

Source

pub const ModIncomingStagger: Self

Source

pub const ModTargetStagger: Self

Source

pub const ModAttackDamage: Self

Source

pub const ModIncomingDamage: Self

Source

pub const ModTargetDamageResistance: Self

Source

pub const ModSpellCost: Self

Source

pub const ModPercentBlocked: Self

Source

pub const ModShieldDeflectArrowChance: Self

Source

pub const ModIncomingSpellMagnitude: Self

Source

pub const ModIncomingSpellDuration: Self

Source

pub const ModPlayerIntimidation: Self

Source

pub const ModPlayerReputation: Self

Source

pub const ModFavorPoints: Self

Source

pub const ModBribeAmount: Self

Source

pub const ModDetectionLight: Self

Source

pub const ModDetectionMovement: Self

Source

pub const ModSoulGemRecharge: Self

Source

pub const SetSweepAttack: Self

Source

pub const ApplyCombatHitSpell: Self

Source

pub const ApplyBashingSpell: Self

Source

pub const ApplyReanimateSpell: Self

Source

pub const SetBooleanGraphVariable: Self

Source

pub const ModSpellCastingSoundEvent: Self

Source

pub const ModPickpocketChance: Self

Source

pub const ModDetectionSneakSkill: Self

Source

pub const ModFallingDamage: Self

Source

pub const ModLockpickSweetSpot: Self

Source

pub const ModSellPrices: Self

Source

pub const CanPickpocketEquippedItem: Self

Source

pub const ModLockpickLevelAllowed: Self

Source

pub const SetLockpickStartingArc: Self

Source

pub const SetProgressionPicking: Self

Source

pub const MakeLockpicksUnbreakable: Self

Source

pub const ModAlchemyEffectiveness: Self

Source

pub const ApplyWeaponSwingSpell: Self

Source

pub const ModCommandedActorLimit: Self

Source

pub const ApplySneakingSpell: Self

Source

pub const ModPlayerMagicSlowdown: Self

Source

pub const ModWardMagickaAbsorptionPct: Self

Source

pub const ModInitialIngredientEffectsLearned: Self

Source

pub const PurifyAlchemyIngredients: Self

Source

pub const FilterActivation: Self

Source

pub const CanDualCastSpell: Self

Source

pub const ModTemperingHealth: Self

Source

pub const ModEnchantmentPower: Self

Source

pub const ModSoulPctCapturedToWeapon: Self

Source

pub const ModSoulGemEnchanting: Self

Source

pub const ModNumberAppliedEnchantmentsAllowed: Self

Source

pub const SetActivateLabel: Self

Source

pub const ModShoutOK: Self

Source

pub const ModPoisonDoseCount: Self

Source

pub const ShouldApplyPlacedItem: Self

Source

pub const ModArmorRating: Self

Source

pub const ModLockpickingCrimeChance: Self

Source

pub const ModIngredientsHarvested: Self

Source

pub const ModSpellRange_TargetLoc: Self

Source

pub const ModPotionsCreated: Self

Source

pub const ModLockpickingKeyRewardChance: Self

Source

pub const AllowMountActor: Self

Source

pub const fn to_enum(self) -> Option<ENTRY_POINT>

Converts to the corresponding enum variant.

Returns Some(ENTRY_POINT) if the value is valid, otherwise None.

Source

pub const fn from_enum(e: ENTRY_POINT) -> Self

Creates the struct from the enum.

This allows for easy conversion back to the FFI-friendly representation.

Source

pub const fn count() -> usize

Number of discriminant in enum.

Returns 92

Trait Implementations§

Source§

impl Clone for ENTRY_POINT_CEnum

Source§

fn clone(&self) -> ENTRY_POINT_CEnum

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ENTRY_POINT_CEnum

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ENTRY_POINT_CEnum

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<ENTRY_POINT> for ENTRY_POINT_CEnum

Source§

fn from(value: ENTRY_POINT) -> Self

Converts to this type from the input type.
Source§

impl Hash for ENTRY_POINT_CEnum

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for ENTRY_POINT_CEnum

Source§

fn cmp(&self, other: &ENTRY_POINT_CEnum) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ENTRY_POINT_CEnum

Source§

fn eq(&self, other: &ENTRY_POINT_CEnum) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for ENTRY_POINT_CEnum

Source§

fn partial_cmp(&self, other: &ENTRY_POINT_CEnum) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<ENTRY_POINT_CEnum> for ENTRY_POINT

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: ENTRY_POINT_CEnum) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for ENTRY_POINT_CEnum

Source§

impl Eq for ENTRY_POINT_CEnum

Source§

impl StructuralPartialEq for ENTRY_POINT_CEnum

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more