pub struct AtomBuilder { /* private fields */ }Expand description
Builder for immutable atoms.
Implementations§
Source§impl AtomBuilder
impl AtomBuilder
pub fn vector(self, vector: Option<Vec<f32>>) -> Self
pub fn add_flag(self, flag: impl Into<String>) -> Self
pub fn add_label(self, label: impl Into<String>) -> Self
pub fn add_link(self, link: AtomId) -> Self
pub fn add_typed_link(self, target: AtomId, kind: LinkKind) -> Self
pub fn build(self) -> Atom
Auto Trait Implementations§
impl Freeze for AtomBuilder
impl RefUnwindSafe for AtomBuilder
impl Send for AtomBuilder
impl Sync for AtomBuilder
impl Unpin for AtomBuilder
impl UnwindSafe for AtomBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more