From d962df92112e30c723b6e9206a18060e340f7649 Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Sun, 30 May 2021 21:55:33 -0600 Subject: initial commit --- src/generics.lisp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/generics.lisp (limited to 'src/generics.lisp') diff --git a/src/generics.lisp b/src/generics.lisp new file mode 100644 index 0000000..3c3bb8a --- /dev/null +++ b/src/generics.lisp @@ -0,0 +1,16 @@ +;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- +(declaim (optimize (speed 0) (safety 3) (debug 3))) + +(in-package :org-ckons-serializable) + +(defgeneric all-slots-value-list-no-nulls (serializable) + (:documentation "Returns all slots of `record' as an alist. Not + limited to field slots.")) + +(defgeneric all-slots-plist-no-nulls (serializable) + (:documentation "Returns all slots of `record' as a plist. Not +limited to field slots.")) + +(defgeneric serialize (serializable &key package-name) + (:documentation "Returns a string that, when read with +`read-from-string', will instantiate the `seializable' object.")) -- cgit v1.3