inexor_rgf_model_command::builder

Struct CommandBuilder

Source
pub struct CommandBuilder<S> { /* private fields */ }

Implementations§

Source§

impl CommandBuilder<EntityType>

Source

pub fn new() -> CommandBuilder<EntityType>

Source

pub fn ty(self, ty: &EntityTypeId) -> CommandBuilder<Scope>

Source

pub fn singleton(self, ty: &EntityTypeId) -> CommandBuilder<Help>

Uses the type information to build a command. Useful for entity types with exactly one instance.

Source

pub fn singleton_from_type<S1: Into<String>, S2: Into<String>>( self, namespace: S1, type_name: S2, ) -> CommandBuilder<Help>

Source§

impl CommandBuilder<Scope>

Source

pub fn scope<S: Into<String>>(self, scope: S) -> CommandBuilder<Name>

Source

pub fn scope_and_name<S1: Into<String>, S2: Into<String>>( self, scope: S1, name: S2, ) -> CommandBuilder<Help>

Source§

impl CommandBuilder<Name>

Source

pub fn name<S: Into<String>>(self, name: S) -> CommandBuilder<Label>

Source§

impl CommandBuilder<Label>

Source

pub fn label<S: Into<String>>(self, label: S) -> CommandBuilder<Help>

Source

pub fn no_label(self) -> CommandBuilder<Help>

Source§

impl CommandBuilder<Help>

Source

pub fn help<S: Into<String>>(self, help: S) -> CommandBuilder<Components>

Source

pub fn no_help(self) -> CommandBuilder<Components>

Source§

impl CommandBuilder<Components>

Source§

impl CommandBuilder<Arguments>

Source§

impl CommandBuilder<Properties>

Source

pub fn property<S: Into<String>>( self, property_name: S, value: Value, ) -> CommandBuilder<Properties>

Source

pub fn no_more_properties(self) -> CommandBuilder<Executor>

Source§

impl CommandBuilder<Executor>

Source

pub fn executor<F>(self, subscriber: F) -> CommandBuilder<Finish>
where F: FnMut(&Arc<ReactiveEntityInstance>) -> Value + 'static + Send,

Source

pub fn executor_with_handle<F>( self, subscriber: F, handle_id: Option<u128>, ) -> CommandBuilder<Finish>
where F: FnMut(&Arc<ReactiveEntityInstance>) -> Value + 'static + Send,

Source§

impl CommandBuilder<Finish>

Auto Trait Implementations§

§

impl<S> Freeze for CommandBuilder<S>

§

impl<S> !RefUnwindSafe for CommandBuilder<S>

§

impl<S> Send for CommandBuilder<S>
where S: Send,

§

impl<S> !Sync for CommandBuilder<S>

§

impl<S> Unpin for CommandBuilder<S>
where S: Unpin,

§

impl<S> !UnwindSafe for CommandBuilder<S>

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

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V