pub struct MgpValue { /* private fields */ }Expand description
Useful to own mgp_value coming from / going into Memgraph as a result.
Underlying pointer object is going to be automatically deleted.
NOTE: Implementing From
Implementations§
Source§impl MgpValue
impl MgpValue
pub fn to_value(&self) -> MgpResult<Value>
pub fn make_null(memgraph: &Memgraph) -> MgpResult<MgpValue>
pub fn is_null(&self) -> bool
pub fn make_bool(value: bool, memgraph: &Memgraph) -> MgpResult<MgpValue>
pub fn is_bool(&self) -> bool
pub fn make_int(value: i64, memgraph: &Memgraph) -> MgpResult<MgpValue>
pub fn is_int(&self) -> bool
pub fn make_double(value: f64, memgraph: &Memgraph) -> MgpResult<MgpValue>
pub fn is_double(&self) -> bool
pub fn make_string(value: &CStr, memgraph: &Memgraph) -> MgpResult<MgpValue>
pub fn is_string(&self) -> bool
pub fn is_list(&self) -> bool
pub fn is_map(&self) -> bool
pub fn is_vertex(&self) -> bool
pub fn is_edge(&self) -> bool
pub fn is_path(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MgpValue
impl RefUnwindSafe for MgpValue
impl !Send for MgpValue
impl !Sync for MgpValue
impl Unpin for MgpValue
impl UnwindSafe for MgpValue
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