pub struct PlayerView<P, Q> {
pub public: P,
pub own_private: Option<Q>,
}Expand description
The standard observation produced by State::view_for: the public zone
and the viewer’s own private zone, if any.
Fields§
§public: PThe public zone, visible to everyone.
own_private: Option<Q>The viewer’s own private zone, or None for a spectator.
Trait Implementations§
Source§impl<P: Clone, Q: Clone> Clone for PlayerView<P, Q>
impl<P: Clone, Q: Clone> Clone for PlayerView<P, Q>
Source§fn clone(&self) -> PlayerView<P, Q>
fn clone(&self) -> PlayerView<P, Q>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, P, Q> Deserialize<'de> for PlayerView<P, Q>where
P: Deserialize<'de>,
Q: Deserialize<'de>,
impl<'de, P, Q> Deserialize<'de> for PlayerView<P, Q>where
P: Deserialize<'de>,
Q: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P: PartialEq, Q: PartialEq> PartialEq for PlayerView<P, Q>
impl<P: PartialEq, Q: PartialEq> PartialEq for PlayerView<P, Q>
Source§fn eq(&self, other: &PlayerView<P, Q>) -> bool
fn eq(&self, other: &PlayerView<P, Q>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<P, Q> Serialize for PlayerView<P, Q>
impl<P, Q> Serialize for PlayerView<P, Q>
impl<P: Eq, Q: Eq> Eq for PlayerView<P, Q>
impl<P, Q> StructuralPartialEq for PlayerView<P, Q>
Auto Trait Implementations§
impl<P, Q> Freeze for PlayerView<P, Q>
impl<P, Q> RefUnwindSafe for PlayerView<P, Q>where
P: RefUnwindSafe,
Q: RefUnwindSafe,
impl<P, Q> Send for PlayerView<P, Q>
impl<P, Q> Sync for PlayerView<P, Q>
impl<P, Q> Unpin for PlayerView<P, Q>
impl<P, Q> UnsafeUnpin for PlayerView<P, Q>where
P: UnsafeUnpin,
Q: UnsafeUnpin,
impl<P, Q> UnwindSafe for PlayerView<P, Q>where
P: UnwindSafe,
Q: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more