Struct resp_protocol::BulkString [−][src]
pub struct BulkString(_);
Implementations
Build a new Bulk String
use resp_protocol::BulkString;
let bulk_string: BulkString = BulkString::new(b"foobar");
println!("{:?}", bulk_string); // BulkString(b"$6\r\nfoobar\r\n")
use resp_protocol::{BulkString, EMPTY_BULK_STRING};
let bulk_string: BulkString = EMPTY_BULK_STRING;
println!("{:?}", bulk_string.is_empty()); // true
use resp_protocol::{BulkString, NULL_BULK_STRING};
let bulk_string: BulkString = NULL_BULK_STRING;
println!("{:?}", bulk_string.is_null()); // true
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BulkString
impl Send for BulkString
impl Sync for BulkString
impl Unpin for BulkString
impl UnwindSafe for BulkString
Blanket Implementations
Mutably borrows from an owned value. Read more