Struct cyfs_base::ObjectFormatHelper
source · [−]pub struct ObjectFormatHelper;Implementations
sourceimpl ObjectFormatHelper
impl ObjectFormatHelper
pub fn encode_field<T: ?Sized>(
obj: &mut Map<String, Value>,
key: impl ToString,
value: &T
) where
T: ObjectFormat,
pub fn encode_option_field<T>(
obj: &mut Map<String, Value>,
key: impl ToString,
value: Option<&T>
) where
T: ObjectFormat,
pub fn encode_array<'a, T: 'a, I: IntoIterator<Item = &'a T>>(
obj: &mut Map<String, Value>,
key: impl ToString,
it: I
) where
T: ObjectFormat,
pub fn encode_to_array<'a, T: 'a, I: IntoIterator<Item = &'a T>>(it: I) -> Value where
T: ObjectFormat,
pub fn format_time(time: u64) -> String
Auto Trait Implementations
impl RefUnwindSafe for ObjectFormatHelper
impl Send for ObjectFormatHelper
impl Sync for ObjectFormatHelper
impl Unpin for ObjectFormatHelper
impl UnwindSafe for ObjectFormatHelper
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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