Trait swipl::blob::CloneBlob

source ·
pub unsafe trait CloneBlob: CloneBlobImpl {
    // Required method
    fn get_blob_definition() -> &'static PL_blob_t;
}
Expand description

A blob type whose data is copied into SWI-Prolog and dropped on garbage collection.

Safety

This is unsafe because care has to be taken that the returned PL_blob_t from get_blob_definition actually matches the blob type.

Required Methods§

source

fn get_blob_definition() -> &'static PL_blob_t

Return a blob definition for this CloneBlob.

Object Safety§

This trait is not object safe.

Implementors§