pub struct TaggedListBuilder {
pub list: Vec<Value>,
/* private fields */
}Fields§
§list: Vec<Value>Implementations§
Source§impl TaggedListBuilder
impl TaggedListBuilder
pub fn new(tag: impl Into<Tag>) -> TaggedListBuilder
pub fn push_value(&mut self, value: impl Into<Value>)
pub fn push_untagged(&mut self, value: impl Into<UntaggedValue>)
pub fn into_value(self) -> Value
pub fn into_untagged_value(self) -> UntaggedValue
Trait Implementations§
Source§impl Debug for TaggedListBuilder
impl Debug for TaggedListBuilder
Source§impl From<TaggedListBuilder> for Value
impl From<TaggedListBuilder> for Value
Source§fn from(input: TaggedListBuilder) -> Value
fn from(input: TaggedListBuilder) -> Value
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TaggedListBuilder
impl RefUnwindSafe for TaggedListBuilder
impl Send for TaggedListBuilder
impl Sync for TaggedListBuilder
impl Unpin for TaggedListBuilder
impl UnwindSafe for TaggedListBuilder
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> 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 more