pub struct ServerTick(/* private fields */);
Expand description
Tick relative to the start of the game on the server
Implementations§
Source§impl ServerTick
impl ServerTick
pub fn range_inclusive(&self, till: Self) -> impl Iterator<Item = Self>
Trait Implementations§
Source§impl Add<u32> for ServerTick
impl Add<u32> for ServerTick
Source§impl Add for ServerTick
impl Add for ServerTick
Source§type Output = ServerTick
type Output = ServerTick
The resulting type after applying the
+
operator.Source§impl<'a, _E: Endianness> BitRead<'a, _E> for ServerTick
impl<'a, _E: Endianness> BitRead<'a, _E> for ServerTick
Source§impl<'a, _E: Endianness> BitWrite<_E> for ServerTick
impl<'a, _E: Endianness> BitWrite<_E> for ServerTick
Source§impl Clone for ServerTick
impl Clone for ServerTick
Source§fn clone(&self) -> ServerTick
fn clone(&self) -> ServerTick
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServerTick
impl Debug for ServerTick
Source§impl Default for ServerTick
impl Default for ServerTick
Source§fn default() -> ServerTick
fn default() -> ServerTick
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerTick
impl<'de> Deserialize<'de> for ServerTick
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 Display for ServerTick
impl Display for ServerTick
Source§impl From<ServerTick> for u32
impl From<ServerTick> for u32
Source§fn from(tick: ServerTick) -> Self
fn from(tick: ServerTick) -> Self
Converts to this type from the input type.
Source§impl From<u32> for ServerTick
impl From<u32> for ServerTick
Source§impl Ord for ServerTick
impl Ord for ServerTick
Source§fn cmp(&self, other: &ServerTick) -> Ordering
fn cmp(&self, other: &ServerTick) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<ServerTick> for u32
impl PartialEq<ServerTick> for u32
Source§impl PartialEq<u32> for ServerTick
impl PartialEq<u32> for ServerTick
Source§impl PartialEq for ServerTick
impl PartialEq for ServerTick
Source§impl PartialOrd<ServerTick> for u32
impl PartialOrd<ServerTick> for u32
Source§impl PartialOrd<u32> for ServerTick
impl PartialOrd<u32> for ServerTick
Source§impl PartialOrd for ServerTick
impl PartialOrd for ServerTick
Source§impl Serialize for ServerTick
impl Serialize for ServerTick
Source§impl Sub<u32> for ServerTick
impl Sub<u32> for ServerTick
Source§impl Sub for ServerTick
impl Sub for ServerTick
Source§type Output = ServerTick
type Output = ServerTick
The resulting type after applying the
-
operator.impl Copy for ServerTick
impl Eq for ServerTick
impl StructuralPartialEq for ServerTick
Auto Trait Implementations§
impl Freeze for ServerTick
impl RefUnwindSafe for ServerTick
impl Send for ServerTick
impl Sync for ServerTick
impl Unpin for ServerTick
impl UnwindSafe for ServerTick
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Encode for Twhere
T: BitWrite<LittleEndian>,
impl<T> Encode for Twhere
T: BitWrite<LittleEndian>,
fn encode( &self, stream: &mut BitWriteStream<'_, LittleEndian>, _state: &ParserState, ) -> Result<(), ParseError>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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