pub struct PoiBlockMatcher {
pub block: BlockRef,
pub properties: &'static [(&'static str, &'static str)],
}Expand description
A block whose states belong to a POI type, with optional property constraints.
An empty properties filter matches every state of block (vanilla’s
getStatesOfBlock); a non-empty filter keeps only states where each listed property
equals the given value (vanilla’s BED_HEADS-style predicate, used by home).
Fields§
§block: BlockRef§properties: &'static [(&'static str, &'static str)]Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PoiBlockMatcher
impl !UnwindSafe for PoiBlockMatcher
impl Freeze for PoiBlockMatcher
impl Send for PoiBlockMatcher
impl Sync for PoiBlockMatcher
impl Unpin for PoiBlockMatcher
impl UnsafeUnpin for PoiBlockMatcher
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
§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<>>