Struct cyfs_base::SetContentT
source · [−]pub struct SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,{ /* private fields */ }
Implementations
sourceimpl<T> SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,
SetIteratorPostion: From<T>,
impl<T> SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,
SetIteratorPostion: From<T>,
pub fn new() -> Self
pub fn values(&self) -> &BTreeSet<T>
pub fn into_values(self) -> BTreeSet<T>
pub fn merge(&mut self, other: Self) -> BuckyResult<()>
pub fn list(&self, list: &mut ObjectMapContentList) -> BuckyResult<usize>
pub fn next(&self, it: &mut ObjectMapIterator) -> BuckyResult<()>
pub fn contains(&self, value: &T) -> BuckyResult<bool>
pub fn insert(&mut self, value: &T) -> BuckyResult<bool>
pub fn remove(&mut self, value: &T) -> BuckyResult<bool>
Trait Implementations
sourceimpl<T: Clone> Clone for SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,
impl<T: Clone> Clone for SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,
sourcefn clone(&self) -> SetContentT<T>
fn clone(&self) -> SetContentT<T>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,
impl<T: Debug> Debug for SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,
sourceimpl<'__de__, T: RawDecode<'__de__>> RawDecode<'__de__> for SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,
impl<'__de__, T: RawDecode<'__de__>> RawDecode<'__de__> for SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,
fn raw_decode(__buf__: &'__de__ [u8]) -> BuckyResult<(Self, &'__de__ [u8])>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> BuckyResult<(Self, &'de [u8])>
sourceimpl<T: RawEncode> RawEncode for SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,
impl<T: RawEncode> RawEncode for SetContentT<T>where
T: Send + Sync + Clone + Ord + Display + RawEncode + IntoObjectMapContentItem + From<SetIteratorPostion>,
fn raw_encode<'__de__>(
&self,
__buf__: &'__de__ mut [u8],
__purpose__: &Option<RawEncodePurpose>
) -> BuckyResult<&'__de__ mut [u8]>
fn raw_measure(
&self,
__purpose__: &Option<RawEncodePurpose>
) -> BuckyResult<usize>
fn raw_tail_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a [u8]>
fn raw_encode_to_buffer(&self) -> BuckyResult<Vec<u8>>
fn raw_hash_value(&self) -> BuckyResult<HashValue>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> BuckyResult<Vec<u8>>
Auto Trait Implementations
impl<T> RefUnwindSafe for SetContentT<T>where
T: RefUnwindSafe,
impl<T> Send for SetContentT<T>
impl<T> Sync for SetContentT<T>
impl<T> Unpin for SetContentT<T>
impl<T> UnwindSafe for SetContentT<T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more