Struct edict::component::ComponentBorrow
source · [−]pub struct ComponentBorrow { /* private fields */ }
Expand description
Defines conversion of reference to component into reference to target type.
Implementations
sourceimpl ComponentBorrow
impl ComponentBorrow
sourcepub fn from_borrow<T, U>() -> Selfwhere
T: Borrow<U> + 'static,
U: ?Sized + 'static,
pub fn from_borrow<T, U>() -> Selfwhere
T: Borrow<U> + 'static,
U: ?Sized + 'static,
Creates new ComponentBorrow
from type to borrow
using Borrow
impl.
sourcepub fn from_borrow_mut<T, U>() -> Selfwhere
T: Component + BorrowMut<U>,
U: ?Sized + 'static,
pub fn from_borrow_mut<T, U>() -> Selfwhere
T: Component + BorrowMut<U>,
U: ?Sized + 'static,
Creates new ComponentBorrow
from type to borrow
using BorrowMut
impl.
Trait Implementations
sourceimpl Clone for ComponentBorrow
impl Clone for ComponentBorrow
sourcefn clone(&self) -> ComponentBorrow
fn clone(&self) -> ComponentBorrow
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ComponentBorrow
Auto Trait Implementations
impl RefUnwindSafe for ComponentBorrow
impl Send for ComponentBorrow
impl Sync for ComponentBorrow
impl Unpin for ComponentBorrow
impl UnwindSafe for ComponentBorrow
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more