[−][src]Trait entity::EntLoader
Represents an interface to load some ent from a database
Associated Types
Loading content...Required methods
pub fn load_from_db(
db: WeakDatabaseRc,
id: Id
) -> DatabaseResult<Option<Self::Output>>
[src]
db: WeakDatabaseRc,
id: Id
) -> DatabaseResult<Option<Self::Output>>
Retrieves the ent instance with the specified id from the provided database, returning none if ent not found
Provided methods
pub fn load_from_db_strict(
db: WeakDatabaseRc,
id: Id
) -> DatabaseResult<Self::Output>
[src]
db: WeakDatabaseRc,
id: Id
) -> DatabaseResult<Self::Output>
Retrieves the ent instance with the specified id from the provided database, converting none into a missing ent error
pub fn load(id: Id) -> DatabaseResult<Option<Self::Output>>
[src]
Retrieves the ent instance with the specified id from the global database, returning none if ent not found
pub fn load_strict(id: Id) -> DatabaseResult<Self::Output>
[src]
Retrieves the ent instance with the specified id from the global database, converting none into a missing ent error