pub struct Props(/* private fields */);Implementations§
Source§impl Props
impl Props
pub fn new<T>(data: T) -> Propswhere
T: 'static + PropsData,
pub fn is_empty(&self) -> bool
pub fn has<T>(&self) -> boolwhere
T: 'static + PropsData,
pub fn remove<T>(&mut self)where
T: 'static + PropsData,
pub fn consume<T>(&mut self) -> Result<Box<dyn PropsData>, PropsError>where
T: 'static + PropsData,
pub fn consume_unwrap_cloned<T>(&mut self) -> Result<T, PropsError>
pub fn read<T>(&self) -> Result<&T, PropsError>where
T: 'static + PropsData,
pub fn map_or_default<T, R, F>(&self, f: F) -> R
pub fn map_or_else<T, R, F, E>(&self, f: F, e: E) -> R
pub fn read_cloned<T>(&self) -> Result<T, PropsError>
pub fn read_cloned_or_default<T>(&self) -> T
pub fn read_cloned_or_else<T, F>(&self, f: F) -> T
pub fn write<T>(&mut self, data: T)where
T: 'static + PropsData,
pub fn mutate<T, F>(&mut self, f: F)
pub fn mutate_cloned<T, F>(&mut self, f: F)
pub fn mutate_or_write<T, F, W>(&mut self, f: F, w: W)
pub fn with<T>(self, data: T) -> Propswhere
T: 'static + PropsData,
pub fn without<T>(self) -> Propswhere
T: 'static + PropsData,
pub fn merge(self, other: Props) -> Props
pub fn merge_from(&mut self, other: Props)
Trait Implementations§
Source§impl<A, B, C, D> From<(A, B, C, D)> for Props
impl<A, B, C, D> From<(A, B, C, D)> for Props
Source§fn from(_: (A, B, C, D)) -> Props
fn from(_: (A, B, C, D)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E> From<(A, B, C, D, E)> for Props
impl<A, B, C, D, E> From<(A, B, C, D, E)> for Props
Source§fn from(_: (A, B, C, D, E)) -> Props
fn from(_: (A, B, C, D, E)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for Props
impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for Props
Source§fn from(_: (A, B, C, D, E, F)) -> Props
fn from(_: (A, B, C, D, E, F)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for Props
impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for Props
Source§fn from(_: (A, B, C, D, E, F, G)) -> Props
fn from(_: (A, B, C, D, E, F, G)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for Props
impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H)) -> Props
fn from(_: (A, B, C, D, E, F, G, H)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for Props
impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for Props
impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I, J)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I, J)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K> From<(A, B, C, D, E, F, G, H, I, J, K)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K> From<(A, B, C, D, E, F, G, H, I, J, K)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I, J, K)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I, J, K)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K, L> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M> From<(A, B, C, D, E, F, G, H, I, J, K, L, M)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K, L, M> From<(A, B, C, D, E, F, G, H, I, J, K, L, M)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)> for Props
Source§fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)) -> Props
fn from(_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)> for Props
Source§fn from(
_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T),
) -> Props
fn from( _: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T), ) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)> for Props
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)> for Props
Source§fn from(
_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U),
) -> Props
fn from( _: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U), ) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)> for Propswhere
A: PropsData,
B: PropsData,
C: PropsData,
D: PropsData,
E: PropsData,
F: PropsData,
G: PropsData,
H: PropsData,
I: PropsData,
J: PropsData,
K: PropsData,
L: PropsData,
M: PropsData,
N: PropsData,
O: PropsData,
P: PropsData,
Q: PropsData,
R: PropsData,
S: PropsData,
T: PropsData,
U: PropsData,
V: PropsData,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)> for Propswhere
A: PropsData,
B: PropsData,
C: PropsData,
D: PropsData,
E: PropsData,
F: PropsData,
G: PropsData,
H: PropsData,
I: PropsData,
J: PropsData,
K: PropsData,
L: PropsData,
M: PropsData,
N: PropsData,
O: PropsData,
P: PropsData,
Q: PropsData,
R: PropsData,
S: PropsData,
T: PropsData,
U: PropsData,
V: PropsData,
Source§fn from(
_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V),
) -> Props
fn from( _: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V), ) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X)> for Propswhere
A: PropsData,
B: PropsData,
C: PropsData,
D: PropsData,
E: PropsData,
F: PropsData,
G: PropsData,
H: PropsData,
I: PropsData,
J: PropsData,
K: PropsData,
L: PropsData,
M: PropsData,
N: PropsData,
O: PropsData,
P: PropsData,
Q: PropsData,
R: PropsData,
S: PropsData,
T: PropsData,
U: PropsData,
V: PropsData,
X: PropsData,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X)> for Propswhere
A: PropsData,
B: PropsData,
C: PropsData,
D: PropsData,
E: PropsData,
F: PropsData,
G: PropsData,
H: PropsData,
I: PropsData,
J: PropsData,
K: PropsData,
L: PropsData,
M: PropsData,
N: PropsData,
O: PropsData,
P: PropsData,
Q: PropsData,
R: PropsData,
S: PropsData,
T: PropsData,
U: PropsData,
V: PropsData,
X: PropsData,
Source§fn from(
_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X),
) -> Props
fn from( _: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X), ) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y)> for Propswhere
A: PropsData,
B: PropsData,
C: PropsData,
D: PropsData,
E: PropsData,
F: PropsData,
G: PropsData,
H: PropsData,
I: PropsData,
J: PropsData,
K: PropsData,
L: PropsData,
M: PropsData,
N: PropsData,
O: PropsData,
P: PropsData,
Q: PropsData,
R: PropsData,
S: PropsData,
T: PropsData,
U: PropsData,
V: PropsData,
X: PropsData,
Y: PropsData,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y)> for Propswhere
A: PropsData,
B: PropsData,
C: PropsData,
D: PropsData,
E: PropsData,
F: PropsData,
G: PropsData,
H: PropsData,
I: PropsData,
J: PropsData,
K: PropsData,
L: PropsData,
M: PropsData,
N: PropsData,
O: PropsData,
P: PropsData,
Q: PropsData,
R: PropsData,
S: PropsData,
T: PropsData,
U: PropsData,
V: PropsData,
X: PropsData,
Y: PropsData,
Source§fn from(
_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y),
) -> Props
fn from( _: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y), ) -> Props
Converts to this type from the input type.
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y, Z> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y, Z)> for Propswhere
A: PropsData,
B: PropsData,
C: PropsData,
D: PropsData,
E: PropsData,
F: PropsData,
G: PropsData,
H: PropsData,
I: PropsData,
J: PropsData,
K: PropsData,
L: PropsData,
M: PropsData,
N: PropsData,
O: PropsData,
P: PropsData,
Q: PropsData,
R: PropsData,
S: PropsData,
T: PropsData,
U: PropsData,
V: PropsData,
X: PropsData,
Y: PropsData,
Z: PropsData,
impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y, Z> From<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y, Z)> for Propswhere
A: PropsData,
B: PropsData,
C: PropsData,
D: PropsData,
E: PropsData,
F: PropsData,
G: PropsData,
H: PropsData,
I: PropsData,
J: PropsData,
K: PropsData,
L: PropsData,
M: PropsData,
N: PropsData,
O: PropsData,
P: PropsData,
Q: PropsData,
R: PropsData,
S: PropsData,
T: PropsData,
U: PropsData,
V: PropsData,
X: PropsData,
Y: PropsData,
Z: PropsData,
Source§fn from(
_: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y, Z),
) -> Props
fn from( _: (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, X, Y, Z), ) -> Props
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Props
impl !RefUnwindSafe for Props
impl Send for Props
impl Sync for Props
impl Unpin for Props
impl !UnwindSafe for Props
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> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere
T: Default,
fn initialize() -> T
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<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().