You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Write an atom with the value of `value` into the space and return a mutable reference to the written value. If the space is not big enough, return `None`.
/// This is the foundation of this crate: Types that implement `Atom` define the reading and writing functions for an atom type. However, these types will never be constructed; They are only names to be used for generic type arguments.
98
102
///
99
103
/// This trait has two lifetime parameters: The first one is the lifetime of the atom in memory. In practice, this will often be `'static`, but it's good to keep it generic for testing purposes. The second parameter is the lifetime of the `MutSpace` borrowed by the `FramedMutSpace` parameter in the `write` method. Since the `WriteParameter` may contain this `FramedMutSpace`, it has to be assured that it lives long enough. Since the referenced `MutSpace` also has to borrow the atom, it may not live longer than the atom.
100
-
pubtraitAtom<'handle,'space:'handle>:UriBound{
104
+
pubtraitAtom:UriBound{
101
105
/// The atom-specific parameter of the `read` function.
102
106
///
103
107
/// If your atom does not need a reading parameter, you may set it to `()`.
0 commit comments