Class Description


  • public class Description
    extends Object
    Description string # Invariants The description can be at most 639 __bytes__ long
    • Method Detail

      • eq

        public boolean eq​(Description b)
        Checks if two Descriptions contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • of

        public static Result_DescriptionCreationErrorZ of​(String description)
        Creates a new `Description` if `description` is at most 1023 __bytes__ long, returns `CreationError::DescriptionTooLong` otherwise Please note that single characters may use more than one byte due to UTF8 encoding.
      • into_inner

        public String into_inner()
        Returns the underlying description `String`