Documentation
¶
Overview ¶
Code generated by copy paste; DO NOT EDIT.
Index ¶
- Constants
- Variables
- func CountEncodedAspects(encoded AspectSet) (n int, err error)
- func IterateAspects(encoded AspectSet) iter.Seq2[int, AspectE]
- type AspectE
- type AspectSet
- func EncodeAspects(aspects ...AspectE) (encoded AspectSet, err error)
- func EncodeAspectsIgnoreInvalid(aspects ...AspectE) (encoded AspectSet)
- func EncodeAspectsMustValidate(aspects ...AspectE) (encoded AspectSet)
- func UnionAspects(asp1 AspectSet, asp2 AspectSet) (res AspectSet, err error)
- func UnionAspectsIgnoreInvalid(asp1 AspectSet, asp2 AspectSet) (res AspectSet)
- func (inst AspectSet) CountEncodedAspects() (n int, err error)
- func (inst AspectSet) IsEmptySet() bool
- func (inst AspectSet) IsValid() bool
- func (inst AspectSet) IterateAspects() iter.Seq2[int, AspectE]
- func (inst AspectSet) MaxEncodedAspect() (aspect AspectE, err error)
- func (inst AspectSet) String() string
- func (inst AspectSet) UnionAspects(asp2 AspectSet) (res AspectSet, err error)
- func (inst AspectSet) UnionAspectsIgnoreInvalid(asp2 AspectSet) (res AspectSet)
Constants ¶
View Source
const EmptyAspectSet = AspectSet("0")
View Source
const InvalidAspectEnumValueString = "<invalid AspectE>"
Variables ¶
View Source
var AllAspects = []AspectE{ AspectNone, AspectDurationSI, AspectLengthSI, AspectMassSI, AspectElectricCurrentSI, AspectTemperatureSI, AspectMoleSI, AspectLuminousIntensitySI, AspectPlaneAngleSI, AspectSolidAngleSI, AspectFrequencySI, AspectForceSI, AspectPressureSI, AspectEnergySI, AspectPowerSI, AspectElectricChargeSI, AspectVoltageSI, AspectCapacitanceSI, AspectResistanceSI, AspectConductanceSI, AspectMagneticFluxSI, AspectMagneticFluxDensitySI, AspectInductanceSI, AspectTemperatureCelsiusSI, AspectLuminousFluxSI, AspectIlluminanceSI, AspectRadioactiveActivitySI, AspectAbsorbedDoseSI, AspectDoseEquivalentSI, AspectCatalyticActivitySI, AspectAccelerationSI, AspectAreaSI, AspectComputationSI, AspectDataTransferBitsSI, AspectDataTransferBytesSI, AspectConcentrationSI, AspectFlowSI, AspectRotationalSpeedSI, AspectVelocitySI, AspectVolumeSI, AspectTorqueSI, }
View Source
var ErrEmptySet = eh.Errorf("encoding contains empty set")
View Source
var ErrInvalidEncoding = eh.Errorf("encoding is wrong")
View Source
var MaxAspectExcl = slices.Max(AllAspects) + 1
Functions ¶
func CountEncodedAspects ¶
Types ¶
type AspectE ¶
type AspectE uint8
const ( AspectNone AspectE = 0 AspectDurationSI AspectE = 1 AspectLengthSI AspectE = 2 AspectMassSI AspectE = 3 AspectElectricCurrentSI AspectE = 4 AspectTemperatureSI AspectE = 5 AspectMoleSI AspectE = 6 AspectLuminousIntensitySI AspectE = 7 AspectPlaneAngleSI AspectE = 8 AspectSolidAngleSI AspectE = 9 AspectFrequencySI AspectE = 10 AspectForceSI AspectE = 11 AspectPressureSI AspectE = 12 AspectEnergySI AspectE = 13 AspectPowerSI AspectE = 14 AspectElectricChargeSI AspectE = 15 AspectVoltageSI AspectE = 16 AspectCapacitanceSI AspectE = 17 AspectResistanceSI AspectE = 18 AspectConductanceSI AspectE = 19 AspectMagneticFluxSI AspectE = 20 AspectMagneticFluxDensitySI AspectE = 21 AspectInductanceSI AspectE = 22 AspectTemperatureCelsiusSI AspectE = 23 AspectLuminousFluxSI AspectE = 24 AspectIlluminanceSI AspectE = 25 AspectRadioactiveActivitySI AspectE = 26 AspectAbsorbedDoseSI AspectE = 27 AspectDoseEquivalentSI AspectE = 28 AspectCatalyticActivitySI AspectE = 29 AspectAccelerationSI AspectE = 30 AspectAreaSI AspectE = 31 AspectComputationSI AspectE = 32 AspectDataTransferBitsSI AspectE = 33 AspectDataTransferBytesSI AspectE = 34 AspectConcentrationSI AspectE = 35 AspectFlowSI AspectE = 36 AspectRotationalSpeedSI AspectE = 37 AspectVelocitySI AspectE = 38 AspectVolumeSI AspectE = 39 AspectTorqueSI AspectE = 40 )
func MaxEncodedAspect ¶
type AspectSet ¶
type AspectSet string
func EncodeAspects ¶
func (AspectSet) CountEncodedAspects ¶
func (AspectSet) IsEmptySet ¶
func (AspectSet) MaxEncodedAspect ¶
func (AspectSet) UnionAspects ¶
func (AspectSet) UnionAspectsIgnoreInvalid ¶
Click to show internal directories.
Click to hide internal directories.