Skip to main content

CollectionDirectionalSpeedPolicyV1

Struct CollectionDirectionalSpeedPolicyV1 

Source
pub struct CollectionDirectionalSpeedPolicyV1 { /* private fields */ }
Expand description

Fully validated directional-speed policy V1.

Implementations§

Source§

impl CollectionDirectionalSpeedPolicyV1

Source

pub fn new( manifest: CollectionDirectionalSpeedManifestIdentityV1, runtime_set_id: CollectionLogicalIdV1, source_basis: CollectionDirectionalSpeedSourceBasisV1, diagonal_behavior: CollectionDirectionalSpeedDiagonalBehaviorV1, direction_tolerance_deg: f64, mode: CollectionDirectionalSpeedModeV1, members: Vec<CollectionDirectionalSpeedMemberV1>, ) -> Result<Self, CollectionDirectionalSpeedPolicyError>

Construct and validate one policy in declared member order.

Source

pub const fn direction_tolerance_deg(&self) -> f64

Maximum angular deviation, in degrees, accepted by a later evaluator.

Source

pub const fn schema(&self) -> &'static str

Immutable policy schema identity.

Source

pub const fn schema_version(&self) -> u32

Immutable policy schema version.

Source

pub fn manifest(&self) -> &CollectionDirectionalSpeedManifestIdentityV1

Exact manifest identity bound by this policy.

Source

pub fn runtime_set_id(&self) -> &CollectionLogicalIdV1

Declared directional-blend runtime-set id.

Source

pub const fn source_basis(&self) -> CollectionDirectionalSpeedSourceBasisV1

Explicit source X/Z basis.

Source

pub const fn diagonal_behavior( &self, ) -> CollectionDirectionalSpeedDiagonalBehaviorV1

Explicit diagonal handling.

Source

pub fn mode(&self) -> &CollectionDirectionalSpeedModeV1

Closed speed mode.

Source

pub fn members(&self) -> &[CollectionDirectionalSpeedMemberV1]

Members in declared policy order.

Source

pub fn validate_binding( &self, manifest: &CollectionDirectionalSpeedManifestIdentityV1, runtime_set_id: &CollectionLogicalIdV1, kind: CollectionRuntimeSetKindV1, members: &[CollectionLogicalIdV1], ) -> Result<(), CollectionDirectionalSpeedPolicyError>

Bind this policy to one exact manifest identity and directional set.

Trait Implementations§

Source§

impl Clone for CollectionDirectionalSpeedPolicyV1

Source§

fn clone(&self) -> CollectionDirectionalSpeedPolicyV1

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for CollectionDirectionalSpeedPolicyV1

Source§

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

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

impl PartialEq for CollectionDirectionalSpeedPolicyV1

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Serialize for CollectionDirectionalSpeedPolicyV1

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CollectionDirectionalSpeedPolicyV1

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, dest: *mut u8)

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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 = !

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.