pub enum FoldScope {
OwnerPrivate,
Global,
Channel(Option<String>),
}Expand description
Who can see a fact, as far as merging copies of it goes. Two facts in one class are visible to exactly the same audiences, so one can stand in for the other without hiding or widening anything.
Variants§
OwnerPrivate
Only the owner, in their own private or internal turns: a private
fact (never shown anywhere else, memory_visible), or a channel
fact from an app conversation (app: channel), which is the owner’s
own and has no other audience.
Global
A global fact; its channel never changes who sees it.
Channel(Option<String>)
A channel fact from a platform channel or group: visible to that
channel’s members, so it stays per channel.
Implementations§
Source§impl FoldScope
impl FoldScope
Sourcepub fn can_keep(&self, folded: &FoldScope) -> bool
pub fn can_keep(&self, folded: &FoldScope) -> bool
Whether a fact in self can keep the knowledge of a fact in folded
without hiding it from anyone who could see it: the same class, or a
folded fact only the owner could see (the owner’s private turns see
every scope). Never the reverse, so folding never narrows a fact.
Trait Implementations§
impl Eq for FoldScope
impl StructuralPartialEq for FoldScope
Auto Trait Implementations§
impl Forget for FoldScope
impl Freeze for FoldScope
impl Move for FoldScope
impl RefUnwindSafe for FoldScope
impl Send for FoldScopewhere
RawVecInner: Send,
impl Sync for FoldScopewhere
RawVecInner: Sync,
impl Unpin for FoldScope
impl UnsafeUnpin for FoldScope
impl UnwindSafe for FoldScopewhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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> ⓘ
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> ⓘ
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