pub struct WrittenBookPagePredicate(TextComponent);Expand description
Predicate for one written-book page.
Tuple Fields§
§0: TextComponentImplementations§
Source§impl WrittenBookPagePredicate
impl WrittenBookPagePredicate
pub const fn new(contents: TextComponent) -> Self
pub const fn contents(&self) -> &TextComponent
fn from_nbt_value(tag: &NbtTag) -> Option<Self>
fn to_nbt_value(&self) -> NbtTag
Trait Implementations§
Source§impl Clone for WrittenBookPagePredicate
impl Clone for WrittenBookPagePredicate
Source§fn clone(&self) -> WrittenBookPagePredicate
fn clone(&self) -> WrittenBookPagePredicate
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 Debug for WrittenBookPagePredicate
impl Debug for WrittenBookPagePredicate
Source§impl HashComponent for WrittenBookPagePredicate
impl HashComponent for WrittenBookPagePredicate
Source§fn hash_component(&self, hasher: &mut ComponentHasher)
fn hash_component(&self, hasher: &mut ComponentHasher)
Hashes this value into the given hasher.
Source§fn compute_hash(&self) -> i32
fn compute_hash(&self) -> i32
Computes the hash of this value.
Source§impl PartialEq for WrittenBookPagePredicate
impl PartialEq for WrittenBookPagePredicate
impl StructuralPartialEq for WrittenBookPagePredicate
Auto Trait Implementations§
impl Freeze for WrittenBookPagePredicate
impl RefUnwindSafe for WrittenBookPagePredicate
impl Send for WrittenBookPagePredicate
impl Sync for WrittenBookPagePredicate
impl Unpin for WrittenBookPagePredicate
impl UnsafeUnpin for WrittenBookPagePredicate
impl UnwindSafe for WrittenBookPagePredicate
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>