Enum ruststep::place_holder::PlaceHolder [−][src]
pub enum PlaceHolder<T> {
Ref(RValue),
Owned(T),
}
Expand description
Owned value or reference through entity/value id
Variants
Ref(RValue)
Tuple Fields of Ref
0: RValue
Implementations
pub fn into_owned<Table>(self, table: &Table) -> Result<T::Owned, Error> where
T: Holder<Table = Table> + Clone,
Table: EntityTable<T>,
pub fn into_owned<Table>(self, table: &Table) -> Result<T::Owned, Error> where
T: Holder<Table = Table> + Clone,
Table: EntityTable<T>,
Get owned value, or look up entity table and clone it for a reference.
Errors
- if table lookup failed, i.e. unknown entity id not registered in the table
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for PlaceHolder<T> where
T: RefUnwindSafe,
impl<T> Send for PlaceHolder<T> where
T: Send,
impl<T> Sync for PlaceHolder<T> where
T: Sync,
impl<T> Unpin for PlaceHolder<T> where
T: Unpin,
impl<T> UnwindSafe for PlaceHolder<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more