pub struct JoinableInspectVecDeque(pub VecDeque<String>);
Expand description
Wrapper around std::collections::VecDeque that only holds String.
Implements fuchsia_inspect_derive::Unit, which allows it to be written to inspect as a single property with its value being a comma-separated list that’s concatenation of all of the items in the VecDeque.
To use this in a a structure that implements fuchsia_inspect_derive::Inspect, wrap this in the fuchsia_inspect_derive::IValue smart pointer and it will automatically update the value of the inspect property when updated.
Tuple Fields§
§0: VecDeque<String>
Trait Implementations§
Source§impl Default for JoinableInspectVecDeque
impl Default for JoinableInspectVecDeque
Source§fn default() -> JoinableInspectVecDeque
fn default() -> JoinableInspectVecDeque
Returns the “default value” for a type. Read more
Source§impl Unit for JoinableInspectVecDeque
impl Unit for JoinableInspectVecDeque
Source§type Data = StringProperty
type Data = StringProperty
This associated type owns a subtree (either a property or a node) of a parent inspect node.
May be nested. When dropped, the subtree is detached from the parent.
Default is required such that a detached state can be constructed. The base inspect node
and property types implement default.
Source§fn inspect_create(&self, parent: &Node, name: impl AsRef<str>) -> Self::Data
fn inspect_create(&self, parent: &Node, name: impl AsRef<str>) -> Self::Data
Insert an inspect subtree at
parent[name]
with values from self
and return
the inspect data.Source§fn inspect_update(&self, data: &mut Self::Data)
fn inspect_update(&self, data: &mut Self::Data)
Update the inspect subtree owned by the inspect data with values from self.
Auto Trait Implementations§
impl Freeze for JoinableInspectVecDeque
impl RefUnwindSafe for JoinableInspectVecDeque
impl Send for JoinableInspectVecDeque
impl Sync for JoinableInspectVecDeque
impl Unpin for JoinableInspectVecDeque
impl UnwindSafe for JoinableInspectVecDeque
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