Enum cyfs_base::SimpleContent
source · pub enum SimpleContent {
Map(MapContentT<ObjectId>),
DiffMap(MapContentT<ObjectMapDiffMapItem>),
Set(SetContentT<ObjectId>),
DiffSet(SetContentT<ObjectMapDiffSetItem>),
}
Variants§
Map(MapContentT<ObjectId>)
DiffMap(MapContentT<ObjectMapDiffMapItem>)
Set(SetContentT<ObjectId>)
DiffSet(SetContentT<ObjectMapDiffSetItem>)
Implementations§
source§impl SimpleContent
impl SimpleContent
pub fn content_type(&self) -> ObjectMapSimpleContentType
pub fn as_map(&self) -> &MapContentT<ObjectId>
pub fn as_diff_map(&self) -> &MapContentT<ObjectMapDiffMapItem>
pub fn as_set(&self) -> &SetContentT<ObjectId>
pub fn as_diff_set(&self) -> &SetContentT<ObjectMapDiffSetItem>
Trait Implementations§
source§impl Clone for SimpleContent
impl Clone for SimpleContent
source§fn clone(&self) -> SimpleContent
fn clone(&self) -> SimpleContent
Returns a copy 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