LocalWirePortSource

Struct LocalWirePortSource 

Source
pub struct LocalWirePortSource {
    pub brick_index_in_chunk: u32,
    pub component_type_index: u16,
    pub port_index: u16,
}

Fields§

§brick_index_in_chunk: u32§component_type_index: u16§port_index: u16

Trait Implementations§

Source§

impl AsBrdbValue for LocalWirePortSource

Source§

fn as_brdb_struct_prop_value( &self, schema: &BrdbSchema, _struct_name: BrdbInterned, prop_name: BrdbInterned, ) -> Result<&dyn AsBrdbValue, BrdbSchemaError>

Read a specific struct property value from the schema.
Source§

fn as_brdb_bool(&self) -> Result<bool, BrdbSchemaError>

Source§

fn as_brdb_u8(&self) -> Result<u8, BrdbSchemaError>

Source§

fn as_brdb_u16(&self) -> Result<u16, BrdbSchemaError>

Source§

fn as_brdb_u32(&self) -> Result<u32, BrdbSchemaError>

Source§

fn as_brdb_u64(&self) -> Result<u64, BrdbSchemaError>

Source§

fn as_brdb_i8(&self) -> Result<i8, BrdbSchemaError>

Source§

fn as_brdb_i16(&self) -> Result<i16, BrdbSchemaError>

Source§

fn as_brdb_i32(&self) -> Result<i32, BrdbSchemaError>

Source§

fn as_brdb_i64(&self) -> Result<i64, BrdbSchemaError>

Source§

fn as_brdb_f32(&self) -> Result<f32, BrdbSchemaError>

Source§

fn as_brdb_f64(&self) -> Result<f64, BrdbSchemaError>

Source§

fn as_brdb_str(&self) -> Result<&str, BrdbSchemaError>

Source§

fn as_brdb_asset( &self, _schema: &BrdbSchema, _ty: &str, ) -> Result<Option<usize>, BrdbSchemaError>

Source§

fn as_brdb_enum( &self, _schema: &BrdbSchema, _def: &BrdbSchemaEnum, ) -> Result<i32, BrdbSchemaError>

Source§

fn as_brdb_wire_variant(&self) -> Result<WireVariant, BrdbSchemaError>

Source§

fn as_brdb_struct_prop_array( &self, _schema: &BrdbSchema, _struct_name: BrdbInterned, _prop_name: BrdbInterned, ) -> Result<BrdbArrayIter<'_>, BrdbSchemaError>

Get the the number of entries in a struct property.
Source§

fn as_brdb_struct_prop_map( &self, _schema: &BrdbSchema, _struct_name: BrdbInterned, _prop_name: BrdbInterned, ) -> Result<BrdbMapIter<'_>, BrdbSchemaError>

Get the the number of entries in a struct property.
Source§

impl TryFrom<&BrdbValue> for LocalWirePortSource

Source§

type Error = BrdbSchemaError

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

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

Performs the conversion.

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> 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
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.