Struct OwnedSpaceChildOrder
pub struct OwnedSpaceChildOrder { /* private fields */ }
Expand description
Owned variant of SpaceChildOrder
The wrapper type for this type is variable, by default it’ll use Box
,
but you can change that by setting “--cfg=ruma_identifiers_storage=...
” using
RUSTFLAGS
or .cargo/config.toml
(under [build]
-> rustflags = ["..."]
)
to the following;
ruma_identifiers_storage="Arc"
to useArc
as a wrapper type.
Methods from Deref<Target = SpaceChildOrder>§
Trait Implementations§
§impl AsRef<[u8]> for OwnedSpaceChildOrder
impl AsRef<[u8]> for OwnedSpaceChildOrder
§impl AsRef<SpaceChildOrder> for OwnedSpaceChildOrder
impl AsRef<SpaceChildOrder> for OwnedSpaceChildOrder
§fn as_ref(&self) -> &SpaceChildOrder
fn as_ref(&self) -> &SpaceChildOrder
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<str> for OwnedSpaceChildOrder
impl AsRef<str> for OwnedSpaceChildOrder
§impl Borrow<SpaceChildOrder> for OwnedSpaceChildOrder
impl Borrow<SpaceChildOrder> for OwnedSpaceChildOrder
§fn borrow(&self) -> &SpaceChildOrder
fn borrow(&self) -> &SpaceChildOrder
Immutably borrows from an owned value. Read more
§impl Clone for OwnedSpaceChildOrder
impl Clone for OwnedSpaceChildOrder
§fn clone(&self) -> OwnedSpaceChildOrder
fn clone(&self) -> OwnedSpaceChildOrder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for OwnedSpaceChildOrder
impl Debug for OwnedSpaceChildOrder
§impl Deref for OwnedSpaceChildOrder
impl Deref for OwnedSpaceChildOrder
§type Target = SpaceChildOrder
type Target = SpaceChildOrder
The resulting type after dereferencing.
§fn deref(&self) -> &<OwnedSpaceChildOrder as Deref>::Target
fn deref(&self) -> &<OwnedSpaceChildOrder as Deref>::Target
Dereferences the value.
§impl<'de> Deserialize<'de> for OwnedSpaceChildOrder
impl<'de> Deserialize<'de> for OwnedSpaceChildOrder
§fn deserialize<D>(
deserializer: D,
) -> Result<OwnedSpaceChildOrder, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<OwnedSpaceChildOrder, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for OwnedSpaceChildOrder
impl Display for OwnedSpaceChildOrder
§impl From<&SpaceChildOrder> for OwnedSpaceChildOrder
impl From<&SpaceChildOrder> for OwnedSpaceChildOrder
§fn from(id: &SpaceChildOrder) -> OwnedSpaceChildOrder
fn from(id: &SpaceChildOrder) -> OwnedSpaceChildOrder
Converts to this type from the input type.
§impl From<Arc<SpaceChildOrder>> for OwnedSpaceChildOrder
impl From<Arc<SpaceChildOrder>> for OwnedSpaceChildOrder
§fn from(a: Arc<SpaceChildOrder>) -> OwnedSpaceChildOrder
fn from(a: Arc<SpaceChildOrder>) -> OwnedSpaceChildOrder
Converts to this type from the input type.
§impl From<Box<SpaceChildOrder>> for OwnedSpaceChildOrder
impl From<Box<SpaceChildOrder>> for OwnedSpaceChildOrder
§fn from(b: Box<SpaceChildOrder>) -> OwnedSpaceChildOrder
fn from(b: Box<SpaceChildOrder>) -> OwnedSpaceChildOrder
Converts to this type from the input type.
§impl From<OwnedSpaceChildOrder> for Arc<SpaceChildOrder>
impl From<OwnedSpaceChildOrder> for Arc<SpaceChildOrder>
§fn from(a: OwnedSpaceChildOrder) -> Arc<SpaceChildOrder>
fn from(a: OwnedSpaceChildOrder) -> Arc<SpaceChildOrder>
Converts to this type from the input type.
§impl From<OwnedSpaceChildOrder> for Box<SpaceChildOrder>
impl From<OwnedSpaceChildOrder> for Box<SpaceChildOrder>
§fn from(a: OwnedSpaceChildOrder) -> Box<SpaceChildOrder>
fn from(a: OwnedSpaceChildOrder) -> Box<SpaceChildOrder>
Converts to this type from the input type.
§impl From<OwnedSpaceChildOrder> for String
impl From<OwnedSpaceChildOrder> for String
§fn from(id: OwnedSpaceChildOrder) -> String
fn from(id: OwnedSpaceChildOrder) -> String
Converts to this type from the input type.
§impl FromStr for OwnedSpaceChildOrder
impl FromStr for OwnedSpaceChildOrder
§impl Hash for OwnedSpaceChildOrder
impl Hash for OwnedSpaceChildOrder
§impl Ord for OwnedSpaceChildOrder
impl Ord for OwnedSpaceChildOrder
§fn cmp(&self, other: &OwnedSpaceChildOrder) -> Ordering
fn cmp(&self, other: &OwnedSpaceChildOrder) -> 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
§impl PartialEq<&SpaceChildOrder> for OwnedSpaceChildOrder
impl PartialEq<&SpaceChildOrder> for OwnedSpaceChildOrder
§impl PartialEq<&str> for OwnedSpaceChildOrder
impl PartialEq<&str> for OwnedSpaceChildOrder
§impl PartialEq<Arc<SpaceChildOrder>> for OwnedSpaceChildOrder
impl PartialEq<Arc<SpaceChildOrder>> for OwnedSpaceChildOrder
§impl PartialEq<Box<SpaceChildOrder>> for OwnedSpaceChildOrder
impl PartialEq<Box<SpaceChildOrder>> for OwnedSpaceChildOrder
§impl PartialEq<OwnedSpaceChildOrder> for &SpaceChildOrder
impl PartialEq<OwnedSpaceChildOrder> for &SpaceChildOrder
§impl PartialEq<OwnedSpaceChildOrder> for &str
impl PartialEq<OwnedSpaceChildOrder> for &str
§impl PartialEq<OwnedSpaceChildOrder> for Box<SpaceChildOrder>
impl PartialEq<OwnedSpaceChildOrder> for Box<SpaceChildOrder>
§impl PartialEq<OwnedSpaceChildOrder> for SpaceChildOrder
impl PartialEq<OwnedSpaceChildOrder> for SpaceChildOrder
§impl PartialEq<OwnedSpaceChildOrder> for String
impl PartialEq<OwnedSpaceChildOrder> for String
§impl PartialEq<OwnedSpaceChildOrder> for str
impl PartialEq<OwnedSpaceChildOrder> for str
§impl PartialEq<SpaceChildOrder> for OwnedSpaceChildOrder
impl PartialEq<SpaceChildOrder> for OwnedSpaceChildOrder
§impl PartialEq<String> for OwnedSpaceChildOrder
impl PartialEq<String> for OwnedSpaceChildOrder
§impl PartialEq<str> for OwnedSpaceChildOrder
impl PartialEq<str> for OwnedSpaceChildOrder
§impl PartialEq for OwnedSpaceChildOrder
impl PartialEq for OwnedSpaceChildOrder
§impl PartialOrd for OwnedSpaceChildOrder
impl PartialOrd for OwnedSpaceChildOrder
§impl Serialize for OwnedSpaceChildOrder
impl Serialize for OwnedSpaceChildOrder
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl TryFrom<&str> for OwnedSpaceChildOrder
impl TryFrom<&str> for OwnedSpaceChildOrder
§impl TryFrom<String> for OwnedSpaceChildOrder
impl TryFrom<String> for OwnedSpaceChildOrder
impl Eq for OwnedSpaceChildOrder
Auto Trait Implementations§
impl Freeze for OwnedSpaceChildOrder
impl RefUnwindSafe for OwnedSpaceChildOrder
impl Send for OwnedSpaceChildOrder
impl Sync for OwnedSpaceChildOrder
impl Unpin for OwnedSpaceChildOrder
impl UnwindSafe for OwnedSpaceChildOrder
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
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, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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 moreSource§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type
Source§impl<Ctx, T> MeasureWith<Ctx> for T
impl<Ctx, T> MeasureWith<Ctx> for T
Source§fn measure_with(&self, _ctx: &Ctx) -> usize
fn measure_with(&self, _ctx: &Ctx) -> usize
How large is
Self
, given the ctx
?